\. To escape a character you put a backslash in front of it. So to search for the literal string
[foo] you’d search for
\[foo\] (square brackets in regular expressions denote a range of characters, so if you wanted to search for any one of the letters
r you’d use
Teaching regular expressions is waaaay beyond the scope of this little blog, there are a ton of resources out there written by people who actually study this kind of thing. A starter is the mozilla documentation.
The regular expressions, or plain text that you want to search for, and then replace with, e.g.
Don’t give up after finding the first match. e.g. in the text
foobarfoo the search pattern
foo will match twice with global on, and once without.
Search without considering case. E.g.
foo will match
Search patterns can include line breaks.
‘.’ matches newline
. normally matches any character, except for newlines (line breaks). Turn this on and it will match them.