Skip to content

Custom regex scopes

Tommy Pensyl edited this page May 27, 2024 · 6 revisions

Examples

Spoken form Regex Notes Example
dotted
"[\w.]+"
Matches dotted expression one.two.three
pair math
"$[^$]*$"      
Matches latex inlined math expression. May fail to match if line has unmatched expressions. $e^{\pi i}=-1$
inside math
"[^$]*"
Matches interior of a latex inlined math expression e^{\pi i}=-1

Note

Feel free to add your own examples here.

Clone this wiki locally