in reply to Retrieving Regex matched Group name

Please show us some of the strings you are trying to match. It is impossible to check whether the regex is correct if we do not see the input.

It would also be a helpful to tell what results you expect.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re: Retrieving Regex matched Group name