Escape special characters

suggest change

A regex uses special characters. . means any character, and + means one or more.

To match those characters literally, escape them with a backslash (\). To match a plus sign, use the pattern \+.

[regex]::Escape() escapes every regex special character in a string:

> [regex]::Escape("(foo)")
\(foo\)

> [regex]::Escape("1+1.2=2.2")
1\+1\.2=2\.2

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents