Page 1 of 1

Special characters

Posted: Sun Sep 23, 2018 6:02 pm
by gcotterl
How can I find/replace these characters?

:
}
,
^
*
(
_
]
\
{
'
)
+
{
;
|
"
<
?
>
.
/
~

Posted: Sun Sep 23, 2018 11:12 pm
by ben_josephs
Do you mean when searching with regular expressions?

These characters are not special in regular expressions and can be used literally:

Code: Select all

:
,
_
'
;
"
<
>
/
~
These characters are special in regular expressions and (in most cases) must be quoted, either by prefixing them with a backslash (\) or by turning them into a character class by enclosing them in square brackets ([..]).:

Code: Select all

$
?
*
+
(
)
[
]
{
}
|
.
These characters are special in regular expressions and must be quoted by prefixing them with a backslash (\) whether or not they are in a character class:

Code: Select all

^
\