[Tutor] about Regular Expression

Abdirizak abdi a_abdi406@yahoo.com
Sun May 11 09:09:02 2003


--0-1253465956-1052658514=:22095
Content-Type: text/plain; charset=us-ascii

Hi ,I was a working on program that processes xml files, the program has the following:<W>The</W> <W>most</W> <W>likely</W> <W>analysis</W>I want to extract the words in between <W>..</W> and  I set up reg expression which gives me those words: that is o.k ['The', 'most', 'likely', 'analysis', ......] but the program has also a non- word tagged with <W>..</W>I was trying to set up a reg. expression that eliminates those tagged non-words which are giving me a bit of aproblem....  <W>.</W> <W>,</W> <W>(</W> <W>)</W> <W>'</W> can anyone help me get this reg. expression wright ? thanks in advance 

---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
--0-1253465956-1052658514=:22095
Content-Type: text/html; charset=us-ascii

<DIV>Hi ,</DIV>
<DIV>I was a working on program that processes xml files, the program has the following:</DIV>
<DIV>&lt;W&gt;The&lt;/W&gt; &lt;W&gt;most&lt;/W&gt; &lt;W&gt;likely&lt;/W&gt; &lt;W&gt;analysis&lt;/W&gt;</DIV>
<DIV>I want to extract the words in between &lt;W&gt;..&lt;/W&gt; and&nbsp; I set up reg expression which gives me those words: that is o.k</DIV>
<DIV>&nbsp;</DIV>
<DIV>['The', 'most', 'likely', 'analysis', ......]</DIV>
<DIV>&nbsp;</DIV>
<DIV>but the program has also a non- word tagged with &lt;W&gt;..&lt;/W&gt;</DIV>
<DIV>I was trying to set up a reg. expression that eliminates those tagged non-words which are giving me a bit of aproblem....</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&lt;W&gt;<STRONG>.</STRONG>&lt;/W&gt; &lt;W&gt;<STRONG>,</STRONG>&lt;/W&gt; &lt;W&gt;<STRONG>(</STRONG>&lt;/W&gt; &lt;W&gt;<STRONG>)</STRONG>&lt;/W&gt; &lt;W&gt;<STRONG>'</STRONG>&lt;/W&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>can anyone help me get this reg. expression&nbsp;wright ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks in advance&nbsp;</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo.
--0-1253465956-1052658514=:22095--