1. Computing
Send to a Friend via Email
Michael Morin

Named Groups

By August 31, 2013

Follow me on:

Regular expressions get real hairy, real fast.  There's no getting around it, or is there?  Ruby's regular expression engine (called oniguruma) supports a feature called "named capture groups" that, combined with extended regular expressions, allows you to create very interesting parser-like regular expressions that can clearly parse structured text.

Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.