2007 9:10 AM
To: users@lists.ironpython.com
Subject: [IronPython] Valid regex under CPython won't compile under IronPython
#test.py
import re
# The below line fails under IronPython 1.1 (but works under Cpython)
regex = re.compile(
r"^(?PNMAKE[A-Za-z0-9]*)'\"?(?P[\\A
#test.py
import re
# The below line fails under IronPython 1.1 (but works under Cpython)
regex = re.compile(
r"^(?PNMAKE[A-Za-z0-9]*)'\"?(?P[\\A-Za-z0-9/:_\.\+]+)" )
if regex.search( r"NMAKE0119'adirectory\afile.txt" ):
print 'good'
else:
print 'bad'
---