Re: Best Way to extract Numbers from String

2010-03-20 Thread Novocastrian_Nomad
Regular expression are very powerful, and I use them a lot in my paying job (unfortunately not with Python). You are however, basically using a second programing language, which can be difficult to master. Does this give you the desired result? import re matches = re.findall('([\d\.,]+)\s*', c

Re: Best Way to extract Numbers from String

2010-03-20 Thread Someone Something
Its an extremely bad idea to use regex for HTML. You want to change one tiny little thing and you have to write the regex all over again. if its a throwaway script, then go ahead. 2010/3/20 Luis M. González > On Mar 20, 12:04 am, Jimbo wrote: > > Hello > > > > I am trying to grab some numbers fr

Re: Best Way to extract Numbers from String

2010-03-20 Thread Jimbo
On Mar 20, 11:51 pm, Luis M. González wrote: > On Mar 20, 12:04 am, Jimbo wrote: > > > > > > > Hello > > > I am trying to grab some numbers from a string containing HTML text. > > Can you suggest any good functions that I could use to do this? What > > would be the easiest way to extract the foll

Re: Best Way to extract Numbers from String

2010-03-20 Thread Luis M . González
On Mar 20, 12:04 am, Jimbo wrote: > Hello > > I am trying to grab some numbers from a string containing HTML text. > Can you suggest any good functions that I could use to do this? What > would be the easiest way to extract the following numbers from this > string... > > My String has this layout

Re: Best Way to extract Numbers from String

2010-03-19 Thread Gabriel Genellina
En Sat, 20 Mar 2010 00:04:08 -0300, Jimbo escribió: I am trying to grab some numbers from a string containing HTML text. Can you suggest any good functions that I could use to do this? What would be the easiest way to extract the following numbers from this string... My String has this layout

Best Way to extract Numbers from String

2010-03-19 Thread Jimbo
Hello I am trying to grab some numbers from a string containing HTML text. Can you suggest any good functions that I could use to do this? What would be the easiest way to extract the following numbers from this string... My String has this layout & I have commented what I want to grab: [CODE] ""