tags:

views:

97

answers:

4

Title says it all...

+3  A: 
(?<NameOfGroup>[a-z]*)

Use the ? syntax like in the sample above.

Haacked
A: 
(?<first>group)(?'second'group).

http://www.regular-expressions.info/named.html

Per Hornshøj-Schierbeck
A: 
(?<NAME>EXPRESSION) or (?'NAME'EXPRESSION)
Quintin Robinson
A: 
(?<name>.*)

Substitute with whatever you want to call your group. whatever follow is the regular expression you expect to parse and match the result to the group.

See my post this morning on example how to parse a file list for name and number index

http://stackoverflow.com/questions/2307865/how-to-get-files-from-1-to-n-in-a-particular-pattern/2308012#2308012

Fadrian Sudaman