Package net.sourceforge.plantuml.regex


package net.sourceforge.plantuml.regex
Provides classes used to compose regex partials.

PlantUML parses text using regular expressions. To aid in readability, these are sepecified as trees of RegexComposed branches and RegexLeaf leaves.

Before a RegexComposed can be matched, it must first have each of its constituent parts concatenated into one large regex string using RegexComposed.getFullSlow(). This string is then transformed by MyPattern.transform(java.lang.String) to replace some macros (e.g. %s for whitespace, %q for single quote) and compiled using Pattern.compile(java.lang.String).