From: Vincent Fourmond Date: 2006-09-29T18:10:49+09:00 Subject: Re: Regexp help Hello > I have a string of the form > > 2h 3m > > or > > 3m 2h > [....] > Is there a smart regexp one liner that could produce > > [2, 3] If you want to get [2,3] in both cases, that will be really difficult. As far as I know, you can only do that in C#, which has named capturing groups. In all the other languages I know, the capturing groups are numbered when they are found... That rules it out. By the way, would it be difficult to implement named capturing groups in regular expressions ? Would that interest someone ? Cheers ! Vince