Fixed the syntax issues of these commands.
Refactored matches()
Regex characters are now escaped when looking up a factoid trigger.