At rev 39 found that if last child of Follow is Optional, expression works wrong if Optional spelled incorrectly:
D:>java -DDEBUG -jar frej.jar "(bla,sve,(?nom))"
bla sve nom
blasvenom
0.0
bla sve
blasve
0.0
bla sve nim
0.0
In last case it is supposed that result should be not zero, and replacement string should be present.
It is not a bug, but if match tries to work with such Follow element, it could not match to the end of string because Follow prefers not include last child at all.
Problem could be solved with adding special element which would match end of text (and possibly start of text too).