[Tutor] about a program

Abdirizak abdi a_abdi406@yahoo.com
Wed Mar 19 08:59:23 2003


--0-1088473177-1048082183=:16986
Content-Type: text/plain; charset=us-ascii


Hi everyone,

I was developing a little program that uses regular expression, initially I set up

an expression which looks like this :buf = re.compile("[a-zA-Z]+\s+")  this was to

match the followint string:

str = 'Data sparseness is an inherent problem in statistical methods for natural language processing.'

the result gets is it gets all the tokens except the last last one with the dot(full stop at the back)

can anyone suggest how I can achieve to handle all the cases with the above

RE.

thanks in advance 

 



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

<P>Hi everyone,</P>
<P>I was developing a little program that uses regular expression, initially I set up</P>
<P>an expression which looks like this&nbsp;:<EM>buf = re.compile("[a-zA-Z]+\s+")&nbsp; </EM>this was to</P>
<P>match the followint string:</P>
<P><EM>str = 'Data sparseness is an inherent problem in statistical methods for natural language processing.'</EM></P>
<P>the result gets is it gets all the tokens except the last last one with the dot(full stop at the back)</P>
<P>can anyone suggest how I can achieve to handle all the cases with the above</P>
<P>RE.</P>
<P>thanks in advance&nbsp;</P>
<P>&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-1088473177-1048082183=:16986--