[issue28690] Loop in re (regular expression) processing

2016-11-14 Thread Walter Farrell
Walter Farrell added the comment: Thanks, Gareth. That does work. Interesting that regex does still seem to work linearly with the original version, but your version seems cleaner. On Mon, Nov 14, 2016 at 3:55 PM, Gareth Rees wrote: > > Gareth Rees added the comment: > > This is

[issue28690] Loop in re (regular expression) processing

2016-11-14 Thread Walter Farrell
New submission from Walter Farrell: Given: pattern = r"(^|[^\\])<(pm [^ ]+( +|'[^']*'|\"[^\"]*\"|[^>]+)+)>" s = "Bain, F. W. " added to the end of s, it returns quickly with a match. Without the ">" it should fail,