Skip to content

Regexes and Parsers

CuddleBear92 edited this page Aug 24, 2018 · 4 revisions

Small collection of regexes and other neat things useful with making parsers.

Regexes:

Useful for testing: Regex101

Remove any space between words, even new lines: (^\W*|\W*$)

Match anything except specific words: ^((?!badword1|badword2).)*$