Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-07-13.23:58:25.716>created_at=<Date2017-07-13.21:27:56.387>labels= ['expert-regex', 'type-bug', 'invalid']
title="re.sub() does not work correctly on '.' pattern and \\n"updated_at=<Date2017-07-13.23:58:25.715>user='https://github.com/mrh1997'
Activity
mrh1997 commented on Jul 13, 2017
When running the command
you get '-X\n-' instead of '-+-'.
Curiously findall works correctly:
mrabarnett commented on Jul 13, 2017
The 4th parameter is the count, not the flags: