I create a SQLite function which takes a string and returns another string, then I can use the return value as match strings. Code is here
It works very well except for t