Searching

Code Browser has two types of search and replace: iterative and global. The global one searches all occurrences of a string and displays a list of links to matching lines.

1. Regular Expressions

Regular expressions can be used to search and replace complex expressions.

1.1. Special Characters in Search Pattern

ExpressionDescription
.Matches any single character except newline
^Matches the beginning of line if it is the first character of the search pattern
$Matches the end of line if it is the last character of the search pattern
?Matches the preceding character or group zero or one time
*Matches the preceding character or group zero or more times
+Matches the preceding character or group one or more times
( )Group. Used to reuse the matched expression in the replace pattern or to repeat a pattern using ?, * or +
[ ] Matches a set of characters. The expression between bracket is a list of characters and range of character. A range of character is defined using the '-'. Example: [a-zA-Z_] matches any alphabetic character and the underscore.

If the first character in the list is a '^', the expression matches all characters except the set of characters.

\tMatches the tab character
\Matches the character following the backslash: the next character will not be considered as a special character. Useful to match ., ^, $, ?, *, +, [, ], (, ) or \.

1.2. Special Characters in Replace Pattern

ExpressionDescription
\\Inserts a backslash.
\1-9Inserts the corresponding group.