How To Escape Rethinkdb Regex Pattern For R.match
I want to search with r.match in rethinkdb using user input - whole user input should be treated as search pattern. I'm creating regex based on user input like this: pattern = u'.*
Use the re.escape()
function for this:
escape(string)
Return string with all non-alphanumerics backslashed; this is useful if you want to match an arbitrary literal string that may have regular expression metacharacters in it.
Post a Comment for "How To Escape Rethinkdb Regex Pattern For R.match"