Re: Regular expressions, help?

2012-04-19 Thread Sania
On Apr 19, 9:52 am, Jon Clements wrote: > On Thursday, 19 April 2012 07:11:54 UTC+1, Sania  wrote: > > Hi, > > So I am trying to get the number of casualties in a text. After 'death > > toll' in the text the number I need is presented as you can see from > >

Re: Regular expressions, help?

2012-04-19 Thread Sania
On Apr 19, 2:48 am, Jussi Piitulainen wrote: > Sania writes: > > So I am trying to get the number of casualties in a text. After 'death > > toll' in the text the number I need is presented as you can see from > > the variable called text. Here is my code > > I

Regular expressions, help?

2012-04-18 Thread Sania
\.]*)", text) deadnum=dead.group(1) deaths.append(deadnum) print deaths Any help would be appreciated, Thank you, Sania -- http://mail.python.org/mailman/listinfo/python-list