* Jonathan S. Shapiro:

> 1. Yes, I know there are several really *good* regexp libraries out there,
> the best (for my immediate purposes) probably being Russ Cox's RE2 engine.
> But I haven't found one that supports multiple matching states. They'll
> tell me "it matched", but not "what matched".

If you have captures, you can tell which part matched.

<http://lists.alioth.debian.org/pipermail/secure-testing-commits/2010-May/015549.html>

Whether this is deterministic enough for your purposes depends on the
implementation.

On the other hand, using regular expressions for keyword matching is
rather expensive because it increases the size of the representation
of the regular expression.
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to