regexp: match only if previous matched?

cirfu circularfunc at yahoo.se
Mon Jun 23 18:02:35 EDT 2008


I need to extract prices froma html-document.

[0-9]*\$ matches 112$ 45$ etc but also just a $. why that shouldnt
really matter and it is unlikely anyway to appear a $sign with no
price attahced to it I still want to prevent it.

How do I avoid matching "$"? It has to be "nbr$".



More information about the Python-list mailing list