From: srinsriram@... Date: 2007-04-07T03:00:07+09:00 Subject: Re: string scan question On Apr 6, 1:43 pm, Alex Young wrote: > Alex Young wrote: > > srinsri...@gmail.com wrote: > >> Here is a simple test case > > >> s = \nXXX\n\n\n > >> \n Administrative Support - Supervisors\n >> VariableValue>\n\n" > > If it's actually XML, just use REXML. Anything else is asking for > > trouble, really. > > Sorry, I didn't notice that your tags aren't matched. Is that > intentional? If so, ignore my suggestion - REXML clearly won't work. > > -- > Alex the content can be quite nonstandard and have mismatched tags etc (like real life html).. so this is not xml I will use rexml when the input is xml.. thanks for your suggestion. this group is very useful for newbies.