RegexEscape
RegexEscape( value )
RegexEscape( value )
RegexEscape( value )
RegexEscape( value )
regex_escape( value )
RegexEscape( value )
Description
The RegexEscape
function returns an escaped regular expression that
matches the value
string verbatim. The returned regular expression is
simply the value
string surrounded by the \Q
and \E
escape
sequences.
Returns
Returns a regular expression String.
Examples
The following query converts a string into an escaped regular expression:
StringV(\Q.Fa*[un]a{1,}\E)
\Q.Fa*[un]a{1,}\E
"\Q.Fa*[un]a{1,}\E"
\Q.Fa*[un]a{1,}\E
\Q.Fa*[un]a{1,}\E
'\\Q.Fa*[un]a{1,}\\E'
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!