Cure2SourceCure2: module to create Re2 regexps using combinators.
to_string re is the string associated with re. It can be useful for debugging or sending the regexp over the network.
regex str is the regex represented by str according to Re2's syntax. Hopefully there should be no need for this, but it could be useful if something is missing No validation is performed on the string, so its possible to get an error from Re2 if there is a syntax error. Beware that using this to set flags can modify the meaning of other combinators, like any which is meant to match new lines.
rep ~min ~max re matches re at least min times and at most max times, bounds included. min defaults to 0 and max to infinity.
Unary operator (!*) is equivalent.
charset cs matches any character that is part of cs charset ~neg:true cs matches any character that is not part of cs