I'm not sure about understanding your actual problem,
but maybe creating simple constants
like static int DAY = 1 and using match.getGroup(DAY)
would give you some more transparency?

Regards,
Michael

-----Ursprüngliche Nachricht-----
Von: Hannes Koller [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. September 2005 11:18
An: [email protected]
Betreff: Named Subgroups


Hi,
I have been using ORO for some time and have encountered a problem. I 
need to give names to Subgroups (Instead of (or in addition to) the 
numbering that is done automatically). Is there a way to do something like

    (?<Day>\d{2})/(?<Month>\d{2})/(?<Year>\d{4})

 which should produce  3 named subgroups  (Day, Month, Year)  and access 
them in java like

       match.getGroup("Day")


Is a feature like this already implemented in ORO and I am missing it, 
or is it planned for the near future? This would greatly ease my task. TIA

Hannes Koller


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to