Seth Troisi added the comment:
I was thinking about how to add the end quote and found these weird cases:
>>> "asdf'asdf'asdf"
"asdf'asdf'asdf"
>>> "asdf\"asdf\"asdf"
'asdf"asdf"asdf'
&
Seth Troisi added the comment:
@matpi
The current behavior is for the right quote to not appear I kept this behavior
but happy to consider changing that.
See the linked patch for examples
--
___
Python tracker
<https://bugs.python.
Change by Seth Troisi :
--
keywords: +patch
pull_requests: +20100
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20922
___
Python tracker
<https://bugs.python.org/issu
Seth Troisi added the comment:
I didn't propose a patch before because I was unsure of decision. Now that
there is a +1 from Raymond I'll working on a patch and some documentation.
Expect a patch within the week.
--
___
Python track
Change by Seth Troisi :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue39949>
___
___
New submission from Seth Troisi :
Following on https://bugs.python.org/issue17087
Today I was mystified by why a regex wasn't working.
>>> import re
>>> re.match(r'.{10}', 'A'*49+'B')
<_sre.SRE_Match object; span=(0, 10), m
Change by Seth Troisi :
--
nosy: +Seth.Troisi
___
Python tracker
<https://bugs.python.org/issue39318>
___
___
Python-bugs-list mailing list
Unsubscribe:
Seth Troisi added the comment:
Given David Murray's input I think the example would be best done as
>>> re.search(r'(\w+) \1', "can you do the can can?") # Matches the duplicate
>>> can
<_sre.SRE_Match object at ...>
I want to stress
New submission from Seth Troisi :
It would be nice to clarify re documentation on how to use \number.
current documentation lists three half examples:
"(.+) \1 matches 'the the' or '55 55', but not 'the end' (note the space after
the group)."
This is