regular expression: perl ==> python

Fredrik Lundh fredrik at pythonware.com
Wed Dec 22 16:59:08 EST 2004


John Machin wrote:
 >
>> > I forgot to add: I am using Python 2.3.4/Win32 (from ActiveState.com). The
>> > code works in my interpreter.
>>
>> only if you type it into the interactive prompt.  see:
>
> No, it doesn't work at all, anywhere. Did you actually try this?

the OP claims that it works in his ActiveState install (PythonWin?).  maybe he
played with re.search before typing in the commands he quoted; maybe Python-
Win contains some extra hacks?

as I've illustrated earlier, it definitely doesn't work in a script executed by a standard
Python...

</F> 






More information about the Python-list mailing list