Regexps helper in LuceneCompiler.