From: Simon Krahnke Date: 2009-03-26T08:31:46+09:00 Subject: Re: Parsing xml * Sebastian Hungerecker (19:17) schrieb: > Peter Zotov wrote: >> But this will fail at "some-tag" embedded in other "some-tag" and if � >> tag will have arguments. Of course, these variants can be predicted � >> and added to regexp too > > I don't see what you could add to the regexp to handle nested tags. You can't > really handle nested structures with regular expressions. I don't see how the regex above he wrote doesn't already do that. If you modify it to /(.*?)<\/some-tag>/ it will ignore attributes, too. Put so simple it can of course problems when there are other elements whose names start with "some-tag". ttfn, simon .... l