iregex 0.2.0

Intermediate representation for Regular Expressions.
Documentation
1
2
3
4
5
6
7
8
9
10
# Rootmatching

Rootmatching consists in deciding if an expression recognizes a given word,
and what part of the word is the *prefix*, the *root*, and the *suffix*.

Of course for the same word, multiple solutions are possible.
The most common strategy shared by mainstream regex engines,
and the one adopted here,
is to minimize the prefix length, and then minimize the suffix length.
In other word, we want the *left-most* and *longest* root.