Which regex flavors support captures (as opposed to capturing groups)?

Posted by Tim Pietzcker on Stack Overflow See other posts from Stack Overflow or by Tim Pietzcker
Published on 2010-04-16T11:39:36Z Indexed on 2010/04/16 11:43 UTC
Read the original article Hit count: 122

Filed under:
|
|

As I just learned from this question, .NET regexes can access individual matches within a repeated capturing group.

I. e., if I apply a regex like \b(\w+\s*)+ to a string of words, only the last word will be stored in \1 or Match.Groups(1).Value, but using Match.Groups(1).Captures I get access to all the individual matches the regex iterated over.

Are there other regex flavors that support this besides .NET?

© Stack Overflow or respective owner

Related posts about regex

Related posts about language-agnostic