Use \Q and \E in regular expressions

173
0
03-05-2024 10:24 AM
AnLizeGCC
New Contributor III

Hello,

Has anyone used successfully \Q and \E in a regular expression in a survey?

I would like to test if an input is present in a text... which works fine until the input starts to include fancy characters. I need the literal input.

Exemple: 

input = "Record(s)"

text = "Record(s),Record(s)"

I got it to work on regex101 with a simple \QRecord(s)\E but it does not seem to match anything in S123.

Thanks!

Tags (1)
0 Kudos
0 Replies