jakarta-regexp-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Bourree <arnaud.bour...@gemalto.com>
Subject Re: regexp help
Date Fri, 12 Jan 2007 14:42:41 GMT

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

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org


Mime
View raw message