If I want to match $.58 in $.589922 How do I do it with Regular Expressions?
[color=blue][color=green][color=darkred]
>>> s=re.search("\$ \.[0-9]{2}", "$.589922")
>>> s.string[/color][/color][/color]
'$.589922'
and not
'$.58' which i s what I want
I think it has something to do with Greediness right?
[color=blue][color=green][color=darkred]
>>> s=re.search("\$ \.[0-9]{2}", "$.589922")
>>> s.string[/color][/color][/color]
'$.589922'
and not
'$.58' which i s what I want
I think it has something to do with Greediness right?
Comment