Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix duplicated test case for re. (GH-12662) | MakDon | 2019-04-04 | 1 | -1/+1 |
| | |||||
* | Issue #22493: Inline flags now should be used only at the start of the | Serhiy Storchaka | 2016-09-11 | 1 | -4/+4 |
| | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression. | ||||
* | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -2/+2 |
| | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` | Serhiy Storchaka | 2015-03-24 | 1 | -3/+3 |
| | | | | | and ASCII letter now raise a deprecation warning and will be forbidden in Python 3.6. | ||||
* | Issue #22838: All test_re tests now work with unittest test discovery. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+1 |
| | |||||
* | convert shebang lines: python -> python3 | Benjamin Peterson | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | #2834: Change re module semantics, so that str and bytes mixing is forbidden, | Antoine Pitrou | 2008-08-19 | 1 | -1/+1 |
| | | | | | and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead. | ||||
* | #3231: re.compile fails with some bytes patterns | Antoine Pitrou | 2008-07-22 | 1 | -6/+2 |
| | |||||
* | More work on bug #672491 and patch #712900. | Gustavo Niemeyer | 2003-04-20 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | I've applied a modified version of Greg Chapman's patch. I've included the fixes without introducing the reorganization mentioned, for the sake of stability. Also, the second fix mentioned in the patch don't fix the mentioned problem anymore, because of the change introduced by patch #720991 (by Greg as well). The new fix wasn't complicated though, and is included as well. As a note. It seems that there are other places that require the "protection" of LASTMARK_SAVE()/LASTMARK_RESTORE(), and are just waiting for someone to find how to break them. Particularly, I belive that every recursion of SRE_MATCH() should be protected by these macros. I won't do that right now since I'm not completely sure about this, and we don't have much time for testing until the next release. | ||||
* | Fix from SF patch #633359 by Greg Chapman for SF bug #610299: | Guido van Rossum | 2003-02-24 | 1 | -0/+1 |
| | | | | | | | | | The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.) | ||||
* | Whitespace normalization. | Tim Peters | 2003-02-19 | 1 | -1/+1 |
| | |||||
* | SF patch #682432, add lookbehind tests | Neal Norwitz | 2003-02-13 | 1 | -0/+7 |
| | |||||
* | Fixed bug #470582, using a modified version of patch #527371, | Gustavo Niemeyer | 2002-11-06 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | from Greg Chapman. * Modules/_sre.c (lastmark_restore): New function, implementing algorithm to restore a state to a given lastmark. In addition to the similar algorithm used in a few places of SRE_MATCH, restore lastindex when restoring lastmark. (SRE_MATCH): Replace lastmark inline restoring by lastmark_restore(), function. Also include it where missing. In SRE_OP_MARK, set lastindex only if i > lastmark. * Lib/test/re_tests.py * Lib/test/test_sre.py Included regression tests for the fixed bugs. * Misc/NEWS Mention fixes. | ||||
* | bug #133283, #477728, #483789, #490573 | Fredrik Lundh | 2001-12-09 | 1 | -2/+8 |
| | | | | | | | backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one) | ||||
* | reapplied darryl gallion's minimizing repeat fix. I'm still not 100% | Fredrik Lundh | 2001-07-02 | 1 | -0/+2 |
| | | | | | sure about this one, but test #133283 now works even with the fix in place, and so does the test suite. we'll see what comes up... | ||||
* | sre 2.1b2 update: | Fredrik Lundh | 2001-03-22 | 1 | -0/+11 |
| | | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn | ||||
* | detect attempts to repeat anchors (fixes bug #130748) | Fredrik Lundh | 2001-02-18 | 1 | -0/+2 |
| | |||||
* | from the really-stupid-bug department: uppercase literals should match | Fredrik Lundh | 2001-01-15 | 1 | -5/+17 |
| | | | | | | | uppercase strings also when the IGNORECASE flag is set (bug #128899) (also added test cases for recently fixed bugs to the regression suite -- or in other words, check in re_tests.py too...) | ||||
* | Fixed too ambitious "nothing to repeat" check. Closes bug #114033. | Fredrik Lundh | 2000-10-07 | 1 | -0/+3 |
| | |||||
* | SRE didn't handle character category followed by hyphen inside a | Fredrik Lundh | 2000-10-07 | 1 | -0/+2 |
| | | | | | character class. Fix provided by Andrew Kuchling. Closes bug #116251. | ||||
* | Recompile pattern if (?x) flag was found inside the pattern during the | Fredrik Lundh | 2000-10-03 | 1 | -2/+4 |
| | | | | first scan. Closes bug #115040. | ||||
* | Fixed negative lookahead/lookbehind. Closes bug #115618. | Fredrik Lundh | 2000-10-03 | 1 | -0/+2 |
| | |||||
* | - don't hang if group id is followed by whitespace (closes bug #114660) | Fredrik Lundh | 2000-09-24 | 1 | -1/+0 |
| | |||||
* | closes bug #112468 (and all the other bugs that surfaced when | Fredrik Lundh | 2000-08-31 | 1 | -15/+38 |
| | | | | I fixed the a bug in the regression test harness...) | ||||
* | -- enabled some temporarily disabled RE tests | Fredrik Lundh | 2000-08-08 | 1 | -0/+6 |
| | | | | | -- added basic unicode tests to test_re -- added test case for Sjoerd's xmllib problem to re_tests | ||||
* | -- whitespace cleanup (real changes coming in next checkin) | Fredrik Lundh | 2000-08-08 | 1 | -20/+20 |
| | |||||
* | AMK's latest | Guido van Rossum | 1998-04-03 | 1 | -12/+8 |
| | |||||
* | New re version from AMK | Guido van Rossum | 1997-12-08 | 1 | -11/+66 |
| | |||||
* | Added tests for \b, \B (AMK). | Guido van Rossum | 1997-08-15 | 1 | -0/+13 |
| | |||||
* | 1.5a3 prerelease 1 from AMK | Guido van Rossum | 1997-08-13 | 1 | -2/+13 |
| | |||||
* | Several additions from Jeffrey. | Guido van Rossum | 1997-07-17 | 1 | -5/+22 |
| | |||||
* | Jeffrey's latest -- seems to solve most problems! | Guido van Rossum | 1997-07-17 | 1 | -19/+47 |
| | |||||
* | Fixed a syntax error caused by a bad line in the Perl source. | Guido van Rossum | 1997-07-15 | 1 | -1/+1 |
| | |||||
* | Merged my changes in, and added all converted Perl tests. | Guido van Rossum | 1997-07-15 | 1 | -24/+284 |
| | |||||
* | Jeffrey's version | Guido van Rossum | 1997-07-15 | 1 | -239/+169 |
| | |||||
* | Tweak re_tests and test_re to differentiate between | Guido van Rossum | 1997-07-15 | 1 | -3/+5 |
| | | | | groups that have no value and groups that are out of bounds. | ||||
* | More tweaks; re.py is nearly there... | Guido van Rossum | 1997-07-15 | 1 | -1/+1 |
| | |||||
* | Jeffrey's newest | Guido van Rossum | 1997-07-15 | 1 | -1/+1 |
| | |||||
* | test suite for re.py | Guido van Rossum | 1997-07-11 | 1 | -0/+278 |