Template:LSL Regular Expressions
| Wildcard | ||
|---|---|---|
| . | Matches any character | |
| Anchors | ||
| ^ | Matches the beginning of the string. | |
| $ | Matches the end of the string. | |
| Repeats | ||
| * | Matches the preceding atom 0 or more times. | |
| + | Matches the preceding atom 1 or more times. | |
| ? | Matches the preceding atom 0 or 1 times. | |
| {n}
{n,} {n, m} |
Matches the preceding atom n, n or more, or between n and m times. | |
| Sub-expressions | ||
| (expression) | Text enclosed in parentheses is a marked sub-expression. Text matched as part of a sub-expressions is split out and may be repeated. | |
| Alternation | ||
| a | b | Match either a or b. | |
| Character Sets | ||
| [abc] | Matches any one of the enumerated characters. | |
| [^abc] | Matches any character other than the enumerated characters. | |
| [a-c] | Matches any character in the specified range. | |