On Aug 18, 2010, at 10:31 AM, Matt Sergeant wrote: > [email protected] wrote: >> https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6483 >> >> >> --- Comment #2 from Mark Martinec >> <[email protected]> >> 2010-08-18 10:46:44 UTC --- >> >> >>> Is there a mature perl wrapper for RE2? >>> >>> >> >> http://github.com/dgl/re-engine-RE2 >> >> >> (it's pretty fresh, don't know how mature it is) >> >> > > It works, and allows it to be a drop-in replacement for perl's regexp engine, > so all you'd need to do is check if it can be loaded, and the perl version is > high enough (5.10 required), and support it in the rule compiler (not even > the re2c stuff). >
Yeah, thats one way to use it but I think the more compelling feature would be use of RE2::Set for scanning. That is what I'd like to see a wrapper built around, I don't think re::engine::RE2 would necessarily be the solution for that. Michael
