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:12:20 GMT
Hi,

My 1st response should be why not used XSLT instead of Regex

But if you percist on Regex:
(?:<inner_tag>([^<]+)</inner_tag>\s*)+

Could help you.

Regards,

Arnaud.



Fabrizio Lippolis wrote on 12/01/2007 14:39:
> Hi list,
>
> sorry for bothering with a regular expression help but I am trying
> without success and I have to do it quickly. This is my problem, I
> have a XML file similar to this (for readability I write it indented
> but it's actually on one line):
>
> <some_tag>
>     <inner_tag>one</inner_tag>
>     <inner_tag>two</inner_tag>
>     <inner_tag>three</inner_tag>
>     ...
> </some_tag>
>
> where <inner_tag> can be repeated many times inside <some_tag>. I
> would like a regexp where I can get each occurrence of
> <inner_tag>some_text</innertag> separately.
>
> Please help if you can, thank you in advance.
>
> Fabrizio
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: regexp-user-help@jakarta.apache.org
>
>
-- 
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