Dollar sign matcher fix + New method for regular expression check

Fixes replaceAll crashing when we are replacing a variable with _$qVar (from sentences such as "Where did you go today?")