On Wed, 22 Aug 2007 07:13:40 +, james_027 wrote:
> I am trying to create a dictionary from a dictionary which the help of
> regex to identify which keys to select. I have something like this but
> I feel its long and not the fastest solution ... could someone
> contribute?
>
> import re
>
>
Hi,
I am trying to create a dictionary from a dictionary which the help of
regex to identify which keys to select. I have something like this but
I feel its long and not the fastest solution ... could someone
contribute?
import re
d= {'line2.qty':2, 'line3.qty':1, 'line5.qty':12, 'line2.item':'5