Re: Help with inverted dictionary
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Help with inverted dictionary

From: <ajikoe@gmail.com>
Date: Tue Jul 12 2005 - 17:20:02 CEST

Hello,

First I'm not so clear about your problem, but you can do the following
steps:

1. Transform your file into list (list1)
2. Use regex to capture 'robert' in every member of list1 and add to
list2
3. Transform your list2 into a file

pujo
Received on Thu Sep 29 16:54:18 2005