Closed BanzaiMan closed 11 years ago
That syntax is not valid for re2: see the official re2 syntax page for full compatibility. Specifically, using (?<name>re)
is unsupported; you should use (?P<name>re)
instead like so:
> RE2('(?i:(?P<abc>abc))').match('abc')
=> #<RE2::MatchData "abc" 1:"abc">
Thanks for the explanation.
Compare:
and
Not sure if this is supported by re2.