Re: [IronPython] Valid regex under CPython won't compile under IronPython

2007-06-15 Thread Martin Maly
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

[IronPython] Valid regex under CPython won't compile under IronPython

2007-06-14 Thread Eric.Wyler
#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' ---