Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-12-02 17:01
Flavor·PCRE (Legacy)

/
For å ([a-zA-Z0-9]+ ){1,5}(?:\bom\b|\bat\b)((?!,).)*\.|For å(?:(?!\bom\b|\bat\b).)*?,.*?\.
/
gm
Open regex in editor

Description

Finds missing commas in "For å ..." constructions according to officially ordained grammar-based comma rules.

Submitted by Eirik Birkeland