To specify following characters in pattern and strings, precede them with the escape character '\'.
Escape character is '\'.
The following table lists characters that require the escape character "\".
Character | Specified as: |
---|---|
" | \" |
$ | \$ |
& | \& |
' | \' |
( | \( |
) | \) |
* | \* |
+ | \+ |
, | \, |
- | \- |
. | \. |
? | \? |
[ | \[ |
\ | \\ |
] | \] |
^ | \^ |
{ | \{ |
| | \| |
} | \} |
~ | \~ |
Example
If the search target string is to be 'abc\', specify 'abc\\'.