searching dict key with reqex

james_027 cai.haibin at gmail.com
Tue Aug 21 04:27:58 EDT 2007


hi,

can I use regex instead of a plain string with this kind of syntax ...

'name' in a_dictionary

something like

r'name_\D+' in a_dictionary?

Thanks
james




More information about the Python-list mailing list