From: Sebastian Hungerecker Date: 2009-03-27T03:40:39+09:00 Subject: Re: Parsing xml Simon Krahnke wrote: > > 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. document = " lala lulu lili " document.match(/(.+?)<\/some-tag>/)[1] => " lala lulu "