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
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
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
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
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
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] ""