Regular Expressions

Real life lostech. Study and adapt working examples until you can figure out how to make your own.

How does it work?
Regex is a language that constructs a search pattern to check text with. For example, the regex  would find every instance of the letter lower case a in a document,   finds "ab" and so on. Wildcards,  , and   can be used to search for any character, number, or letter respectively. Regex, within the thread, is mostly used for cleaning data for modules or as lorebook keys.

can be used to match the following term, at least once, up to as many times as possible before moving to the next term. would highlight any instance of at least two consecutive periods, but not a single; this could be used to find misprints or manual ellipses. Alternatively, curly braces  can be used to specify certain ranges.

Useful Expressions
A list of functions that can be useful in cleaning text data. Note that different browsers and applications can use different engines for regex, meaning that not all expressions are cross-compatible.