[Tutor] about reg expression

Abdirizak abdi a_abdi406@yahoo.com
Wed Mar 26 21:08:02 2003


--0-805182118-1048723198=:18604
Content-Type: text/plain; charset=us-ascii


Hi

I  have a sentence  with tokens tagged with <W>...</W> and I want to split after the fullstop tagged with<W>.</W>  so that I can tag  the whole sentence with<S ID = 'S-0'> .............<W>.</W> </S>

I am having problem setting up with appropriate regular expression can anyone help me set up a Regular Expression for achieving this ?

My final string will look like this: 
 <S ID = 'S-0'>..<W>it</W> <W> is</W> <W>a</W><W> token</W> <W>.</W></S>

thanks in advance

 



---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
--0-805182118-1048723198=:18604
Content-Type: text/html; charset=us-ascii

<P>Hi</P>
<P>I&nbsp; have a sentence&nbsp;&nbsp;with tokens tagged with &lt;W&gt;...&lt;/W&gt;&nbsp;and I want to <STRONG>split after</STRONG>&nbsp;the fullstop tagged with&lt;W&gt;.&lt;/W&gt;&nbsp; so that I can tag &nbsp;the whole sentence&nbsp;with&lt;<STRONG>S ID = 'S-0'&gt; .............&lt;W&gt;.&lt;/W&gt; &lt;/S&gt;</STRONG></P>
<P>I am having problem setting up with appropriate regular expression&nbsp;can anyone help&nbsp;me set up&nbsp;a Regular Expression for achieving this ?</P>
<P>My final string will look like this:&nbsp;<BR><STRONG>&nbsp;&lt;S ID = 'S-0'&gt;..&lt;W&gt;it&lt;/W&gt; &lt;W&gt;&nbsp;is&lt;/W&gt; &lt;W&gt;a&lt;/W&gt;&lt;W&gt; token&lt;/W&gt; &lt;W&gt;.&lt;/W&gt;&lt;/S&gt;</STRONG></P>
<P>thanks in advance</P>
<P><STRONG></STRONG>&nbsp;</P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.html">Yahoo! Platinum</a> - Watch CBS' NCAA March Madness, <a href="http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.html">live on your desktop</a>!
--0-805182118-1048723198=:18604--