New submission from Dan Boxall <dbox...@l3mtechnologies.com>:
Hi, I'm new to regular expressions and while playing around with them I tried this: >>> rex = '*New Revision:.* ([0-9]+)' >>> re.findall(rex, text) and got this: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python\Python37\lib\re.py", line 223, in findall return _compile(pattern, flags).findall(string) File "C:\Python\Python37\lib\re.py", line 286, in _compile p = sre_compile.compile(pattern, flags) File "C:\Python\Python37\lib\sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "C:\Python\Python37\lib\sre_parse.py", line 930, in parse p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0) File "C:\Python\Python37\lib\sre_parse.py", line 426, in _parse_sub not nested and not items)) File "C:\Python\Python37\lib\sre_parse.py", line 651, in _parse source.tell() - here + len(this)) re.error: nothing to repeat at position 0 ---------- components: Regular Expressions messages: 329130 nosy: Callipygean, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: Bad Regular Expression Broke re.findall() versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35146> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com