Skip to content
Edwinem edited this page Aug 25, 2016 · 4 revisions

Use:

The regex expresion will be in MarkRegex class.

This class is Singleton and have an indexed property to get the compiled Regex.

The bigger regex will be splitted in different parts as shown:

Part 1: String blocks = "(h[1-6]|p)";
Part 2: String attributes = "(p)";
Bigger: String wholeLine = $"({blocks})({attributes})\.";

Regex used and meaning:

Clone this wiki locally