ReEscape

Escapes regular expression control characters within a string.

If a string is "foo.bar" and you want to escape it for use in a regular expression, you would use this BIF. Escaped Pattern will be "foo\.bar"

Method Signature

ReEscape(string=[string])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string you that to escape.

Examples

Example of reEscape

Run Example

reEscape( "*.{}[]exam?ple" );

Result: *.{}[]exam?ple

Last updated

Was this helpful?