[issue34315] Regex not evalauated correctly

2019-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For case-insensitive matching you can use the re.IGNORECASE flag. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker __

[issue34315] Regex not evalauated correctly

2019-02-22 Thread noah
noah added the comment: I was able to recreate the 'bad' output on Linux using 'bad' input. The issue is caused when you misspell WHERE, regex is looking for the exact word "WHERE", any lowercase (where), multicase (WHeRe), or misspelling (WERE) is going to cause it to return None because re

[issue34315] Regex not evalauated correctly

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The regular expression engine is not platform depended. Please check that you run the same code. -- status: open -> pending ___ Python tracker ___

[issue34315] Regex not evalauated correctly

2018-09-10 Thread hongweipeng
hongweipeng added the comment: In my test in win2012r2, it works well. Add a screenshot. -- nosy: +hongweipeng Added file: https://bugs.python.org/file47794/win12r2py3.7.png ___ Python tracker __

[issue34315] Regex not evalauated correctly

2018-08-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34315] Regex not evalauated correctly

2018-08-01 Thread Raman
New submission from Raman : Sample code below import re regex = r'DELETE\s*(?P[a-zA-z_0-9]*)\s*FROM\s*(?P[a-zA-z_0-9]+)\s*([a-zA-Z0-9_]*)\s*(?PWHERE){0,1}(\s.)*?' test_str = 'DELETE FROM my_table1 t_ WHERE id in (1,2,3)' matches = re.finditer(regex, test_str, re.MULTILINE) print([m.groupdi