Template:LSL Regular Expressions
Revision as of 11:46, 19 October 2022 by Rider Linden (talk | contribs) (Created page with "{{{!}} class="notsortable" {{Prettytable|style=margin-top:0;}} {{!}}- ! colspan=3|Wildcard |- ! . | Matches any character | |- ! colspan=3|Anchors |- ! ^ | Matches the begin...")
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. |