List Info

Thread: Re: Regex required




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

Sorry I forgot the outside ()

((<[^>]+>)+)

Michael

---- Santosh Pai < santosh%40quagnito.com">santoshquagnito.com> wrote:

=============
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

__._,_.___
.

__,_._,___
Re: Regex required
country flaguser name
United States
1969-12-31 18:00:00

Thanks a mil!

mflinder%40adelphia.net">mflinderadelphia.net wrote:
&gt;
> Sorry I forgot the outside ()
>
> ((<[^&gt;]+>)+)
>
&gt; Michael
>
> ---- Santosh Pai < santosh%40quagnito.com">santoshquagnito.com
> <mailto:santosh%40quagnito.com>> wrote:
&gt;
> =============
> Hi All,
>;
> I have a file with the following format
&gt;
> ["100",&quot;200","<;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;],
&gt; ["100",&quot;200","<;b>Right on!</b&gt;<br&gt;<br&gt;Unusual anatomy.&quot;],
&gt; ["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
&gt; 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.
&gt;
> Can anyone help me out here? I am a bit poor with regex..
>
> thanks
&gt; --pai
&gt;
>

__._,_.___
.

__,_._,___
[1-2]

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