Searching shows re::engine::PCRE as one possible, but is it safe?
This question was asked and not completely answered on stackoverflow:
How can I safely use regexes from user input.
Edit:
Moved the source code to github.
In reply to Untaint a string match, regular expression. by cheako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |