Bugfix: Using text search instead of RegExp object

because some inputs like + or ? cause a syntax error when creating the Regexp object (and it is a text filter, not a regex filter)