[issue38016] Results with re.sub and re.replace is giving different results

2019-09-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue38016] Results with re.sub and re.replace is giving different results

2019-09-03 Thread hongweipeng
hongweipeng added the comment: It's because ```re.sub('0.072', '72.0', newStringUpdated)``` match '03072' in -0.043'03072'77670375. `.` can match any character in regular expression.So I don't think that's a issue. -- nosy: +hongweipeng ___ Pytho

[issue38016] Results with re.sub and re.replace is giving different results

2019-09-02 Thread Mallinath Akkalkot
Change by Mallinath Akkalkot : Removed file: https://bugs.python.org/file48584/Bug_Description_Regular Expression.pptx ___ Python tracker ___ _

[issue38016] Results with re.sub and re.replace is giving different results

2019-09-02 Thread Mallinath Akkalkot
Change by Mallinath Akkalkot : Added file: https://bugs.python.org/file48585/Bug_Description_Regular Expression.pptx ___ Python tracker ___ ___

[issue38016] Results with re.sub and re.replace is giving different results

2019-09-02 Thread Mallinath Akkalkot
New submission from Mallinath Akkalkot : Issue is explained in the attached presentation for the below python script. # PYTHON script import re stringPassed = "START, 0.272342208623734, 0.122712611838329\nCIRCL, 0.2739, 0.1175, 0.2644, 0.1175\nCIRCL, 0.2644, 0.108, 0.2644, 0.1175\nLINE, 0.26