python regular expression help

7stud bbxx789_05ss at yahoo.com
Thu Apr 12 01:08:14 EDT 2007


On Apr 11, 10:50 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Wed, 11 Apr 2007 23:14:01 -0300, Qilong Ren <qilong_... at yahoo.com>  
> escribió:
>
> > Thanks for reply. That actually is not what I want. Strings I am dealing  
> > with may look like this:
> >      s = 'a = 4.5 b = 'h'  'd' c = 4.5 3.5'
> > What I want is
> >      a = 4.5
> >      b = 'h' 'd'
> >      c = 4.5 3.5

I suppose next you'll post your strings can also  look like this:

"#!@#$!@%WESDFGASDF at W#%$@%====12341234qeerasdfdae"

and you want "A = 3"





More information about the Python-list mailing list