Re: regexp help

Arnaud Bourree <[email protected]> Fri, 12 Jan 2007 15:42:41 +0100
Newsgroups gmane.comp.jakarta.regexp.user
Message-ID <[email protected]>
Fabrizio Lippolis wrote on 12/01/2007 15:35:
> Arnaud Bourree ha scritto:
>
>> But if you percist on Regex:
>> (?:<inner_tag>([^<]+)</inner_tag>\s*)+
>>
>> Could help you.
>
> Thank you for your help, maybe I failed to explain the problem the
> right way but this expression returns all the <inner_tag>s in a single
> group. What I need is to get in one group is a single
> <inner_tag>text</inner_tag> where the number of <inner_tag> is unknown
> before. So I need as many groups as the number of <inner_tag>s.
>
Try:
(?:<inner_tag>([^<]+)</inner_tag>)+\s*
> Fabrizio
>
>
-- 
Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird