It is possible to support regexp, probably as a function.
Beware: In general, these types of “calculate stuff query-time”-queries will be much slower that using prestored values like ngram. That is particularly true for queries starting with a wildcard.
Yeah I figured as much.
But in some weird instances they might be needed. Ouuh that was vague
Regexp is pretty powerful.
Instead of doing regexp I’ve decided to wash the incoming data instead.
Since I’m going to sort, aggregate and filter on it that was the correct solution anyway.