variableRegex is now static and looks only for word characters (was non-whitespace before)