List Info

Thread: Regex required




Regex required
country flaguser name
United States
1969-12-31 18:00:00

Hi All,

I have a file with the following format

["100",&quot;200";,"&lt;b>Try again.</b><br><br><tag></tag>Although I."],
["100",&quot;200","<;b>Yes.</b>&lt;br>&lt;br>&lt;mytag></mytag><mytag></mytag>After
multiple revisions&quot;],
["100",&quot;200","<;b>Right on!</b&gt;<br&gt;<br&gt;Unusual anatomy.&quot;],
["100",&quot;200","<;b>Try again.</b><br><br>Rheumatoid "],
["100",&quot;200","<;b>Right on!</b&gt;<br&gt;<br&gt;Extreme "],
["100",&quot;200","<;b>Way to go!</b&gt;<br&gt;<br&gt;A condition "]

I need a regex construct which matches all tags, i.e<.*?>. But I would
want successive tags to be grouped together, i.e if <.*?>; is immediately
followed by another tag (and another..and another ) then it should be
clubbed together. So in short...if a tag is *immediately* followed by a
tag n times..they should be a in single block.

Can anyone help me out here? I am a bit poor with regex..

thanks
--pai

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )