System::Text::RegularExpressions::Regex::Escape method

Regex::Escape method

Escapes special characters to use string as part of the pattern.

static String System::Text::RegularExpressions::Regex::Escape(const String &str)
ParameterTypeDescription
strconst String&String to escape special characters in.

ReturnValue

String with escaped special characters.

See Also