Module RE, Have a couple questions

dasacc at gmail.com dasacc at gmail.com
Tue Mar 1 08:59:50 EST 2005


(1) How do I perform a search for "word" and have it return every line
that this instance is found?

(2) How do I perform a search for "word" and "wordtwo" at the same time
to return every line these instances are found so that the order in
which these lines are in are left intact.

If there's another standard module more suited for this let me know,
and no I dont want to use sed :)

Thanks




More information about the Python-list mailing list