Closed GoogleCodeExporter closed 9 years ago
FYI, I've tested with the re2-20140304.tgz, not the latest.
Original comment by benens...@gmail.com
on 27 Jun 2014 at 7:33
Did you try plain RE2::PartialMatch? I don't think the syntax is correct. I
think it is [[:digit:]] not [:digit:]. The latter is just [:digt].
Original comment by rsc@golang.org
on 27 Jun 2014 at 8:22
I haven't tried RE2::PartialMatch, my use of RE2 mainly the ability to match
multiple expressions at the same time with RE2::re2::Set.
From the http://code.google.com/p/re2/wiki/Syntax page, I guess I'm a bit
confused, if I should use [:digit:] or [[:digit:]] as a character class. I
tried [:digt] as you mentioned, without much success though. Also tried
[:digit] (assuming a typo), without success. Any help there would be much
appreciated.
I worked around this by using Perl and Unicode character classes \\pL, \\d and
\\w which seem to work fine on my test cases.
Cheers,
Ben
Original comment by benens...@gmail.com
on 2 Jul 2014 at 4:38
Erratum:
Please read \pL, \d and \w in my previous comment.
Ben
Original comment by benens...@gmail.com
on 2 Jul 2014 at 4:40
Original comment by rsc@golang.org
on 9 Jul 2014 at 4:18
This issue was closed by revision 67e0bfcd78e9.
Original comment by rsc@swtch.com
on 6 Oct 2014 at 6:56
Original issue reported on code.google.com by
benens...@gmail.com
on 27 Jun 2014 at 7:28Attachments: