tlux-regex
Patterns search through the current text; use \^ for the start and \$ for the end.
abc
literal characters match themselves in order
a.d
dot matches any one character
ab|cd
the branch applies to neighboring tokens, then rejoins the sequence
a[bc]d
shorthand for branches between a collection of single tokens
a(bc)d
parentheses group a sequence so controls can apply to it
a{bc}d
braces negate a grouped expression
x?
the preceding token or token group may be skipped
x*
the preceding token or token group may appear zero or many times
\^abc
leading start-of-text marker
abc\$
match only at the end of the text
\shortcut
inject a saved shortcut as one grouped expression