Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • To translate from Perl terminology to .Net, think of a group as a capture. If you just want the value that you would get in $1, $2 etc then access group 1, 2, etc and use the .Value property (I think).

    Captures are something else in .Net - they are useful if you have a quantified group. So if you have

    ([ab])*

    And matched the string aabba then your group object would just have the value "a", but there would be 5 capture objects held in the collection within the group object, having the values "a", "a", "b", "b" and "a" respectively.

    At least, that's what I remember of it. I'm a little hazy. :-)