Editing code files / Search and replace |
The Search tool will search for an exact match to text in the Find box, unless you specify match conditions using regular expressions, special meta characters, and predefined regular expressions.
Entering the string FUNCTION, will find FUNCTION or function, but not the string fun. If the Search option case sensitive is checked, the search will distinguish between uppercase and lowercase letters.
Wildcard | Description | Example expressions | Matches any string |
---|---|---|---|
. | Substitutes for any single character |
|
|
|
|
||
* | Substitutes for zero or more occurrences of the preceding expression/character |
|
|
+ | Substitutes for one or more occurrences of the preceding expression/character |
|
|
\ | Searches for the character following; this cancels the special significance of the meta characters including itself, allowing a search for them. When used in a set, it is treated as an ordinary character. |
|
|
|
|
||
[set] | Defines a set of characters enclosed in square brackets ([...]) to be used for matching; may define character ranges, as in [a-z] and [0-9]. If the first character in the set is "^", it matches any character NOT in the set. |
|
|
|
|
||
|
|
||
|
|
||
x | y | Matches either expression x or expression y (composite expression) |
|
|
xy | Strings multiple expressions together, finding a single string containing expression x and expression y (composite expression) |
|
|
^ $ | Restricts the pattern matching to strings at the beginning of the line ( ^ character) and/or the end of the line ($ character), |
|
|