This section lists a few regular expressions examples. The description section describes the results of the Find All command used with a given regular expression.
-
\w+
- Match all identifiers in a programming language source file.
-
(.)\1+
- Match any sequence of repeated characters, which length is at least two characters.
-
[\x00\x01\x02]
- Match 00, 01 or 02 bytes in the document.
-
\w+(?=\s*\*)
- Match all C++ class names in the document which are followed by a "*" character. "*" character and any optional space characters before it are not matched.
-
(?<=http://)[\w\.]+?\.(com|net|org)
- Match all domain name portions of URLs.
-
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\
- Match all IPv4 addresses.
-
^{
- Match "{" characters at the beginning of the line.
See Also