The following table describes the character list:
Character |
Description |
Example |
---|---|---|
. | (Period) Any single character. | b.d matches “bed” and “bad” but not “bead”. |
* | None or more of the preceding characters or expressions. | a*ck matches “luck”, “back” and “barrack” but not “brace”. |
+ | At least one or more of the preceding characters or expressions. | a+ck matches “back” and “barracks” but not “luck”. |
^ | The beginning of a line. | ^luck matches the word “luck” only when it appears as the first set of characters in a line of the editor. |
$ | The end of a line. | luck$ matches the word “luck” only when it appears as the last set of characters possible at the end of a line in the editor. |
< | The beginning of a word. | <ba matches words such as “bad” and “back” that begin with the letters “ba”. |
> | The end of a word. | ck> matches words such as “luck” and “back” that end with the letters “ck”. |
( ) or { } | Any sequence of characters between the braces. | (very)+good finds “verygood”, “veryverygood”and so on. Note that it is not found “vgood”, “ygood”, or “vergood” because the sequence “very” is not in any of those strings. |
| | Matches either the expression before or the one after the OR symbol (|). Mostly used in a group. | (sun|mon)day matches “sunday” and “monday”. |
[ ] | Any of the characters contained in the brackets, or any of the ASCII range of characters separated by a hyphen (-). | b[aeiou]d matches bad, bed, bid, bod, and bud. r[eo]+d matches red, rod, reed, rood, reod and roed. x[0-9] matches x0, x1, x2, and so on. |
[ ^ ] | Any character except this following the caret (^) character in the brackets, or any of the ASCII range of characters separated by a hyphen (-). | x[^0-9] matches xa, xb, xc, and so on, but not x0, x1, x2, and so on. |
:b | Any white-space character. The :b finds tabs and spaces. | Good:bday matches the phrase "Good day" in text but not Goodday |
:z | Any unsigned decimal integer. | :z matches any integer, such as "2", "567", "99" etc. but not “luck”. Equivalent to- [0 – 9]+. |
:i | Any LDL+ identifier. | :i matches any LDL+ identifier like “amount1”, “amount_$” etc. but not “1amount”. Equivalent to- [a-zA-Z_$][a-zA-Z0-9_$]* |
:q | Any quoted string. | :q matches "luck" and 'luck' but not the 't of don't. Equivalent to- ((\"[^\"]*\")|('[^']*')). |
\ | Removes the pattern match characteristic in the Find What text box from the special characters listed above. | 100$ matches 100 at the end of a line, but 100\$ matches the character string 100$ anywhere on a line. |