On Wed, Jun 11, 2008 at 5:35 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
> Silly question but how do you use python's re module to find
> dictionary items that contain the '$' symbol.

There is no need to use re for this.
[ v for v in d.values() if '$' in v ]
will give you a list of all values containing '$'.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to