Regex in advanced query code

There are many regex examples in the forum (e.g. this one). They use re-pattern and re-find.