regular expression help
lanyjie at yahoo.com
Tue Nov 30 06:39:45 CET 2010
--- On Tue, 11/30/10, goldtech <goldtech at worldpost.com> wrote:
> From: goldtech <goldtech at worldpost.com>
> Subject: regular expression help
> To: python-list at python.org
> Date: Tuesday, November 30, 2010, 9:17 AM
> The regex is eating up too much. What I want is every
> occurrence I think.
> so rtt would be:
Hi, I'll just let Python do most of the talk here.
>>> import re
>>> p.sub("||", m)
More information about the Python-list