Regular expressions are patterns that describe character combinations in text. Using them in code search helps to describe concepts such as “lines starting with ‘var’ and” attribute values containing numbers “. For more information about searching, see searching and replacing labels and attributes.
The following table lists the special characters used in regular expressions, their meanings, and usage examples. To search for text that contains a special character in the table, precede the special character with a backslash to escape it. For example, to search for the actual asterisk in the phrase “some # conditions # apply *”, your search pattern should be similar to: apply \ *. If you do not escape the asterisk, you will find all matches of “apply” (and all matches of “apple”, “applyy” and “applyyy”), not just those followed by an asterisk.
Use parentheses to separate the groups to be referenced later in the regular expression. Then use $1, $2, $3, and so on in the replace field to refer to the first, second, third, and later bracket groups.
Use \ 1, \ 2, \ 3, etc. (instead of $1, $2, $3) in the find what text box to refer to earlier bracket groupings in regular expressions.
For example, by searching for (\ D +) \ / (\ D +) \ / (\ D +) and replacing it with $2 / $1 / $3, you can swap days and months among dates separated by slashes (so you can convert between American style dates and European style dates)