This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2001年09月17日 16:27 by effbot, last changed 2022年04月10日 16:04 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg6557 - (view) | Author: Fredrik Lundh (effbot) * (Python committer) | Date: 2001年09月17日 16:27 | |
as reported by Carlos Gaston Alvarez on
comp.lang.python (verified in 2.1.1 and 2.2a3):
>>> import pre
>>> p = pre.compile("x*")
>>> p.sub("-", "abxd")
'-a-b-d-'
>>> import sre
>>> p = sre.compile("x*")
>>> p.sub("-", "abxd")
'-a-b--d-'
</F>
|
|||
| msg6558 - (view) | Author: Fredrik Lundh (effbot) * (Python committer) | Date: 2001年09月18日 18:35 | |
Logged In: YES user_id=38376 unlike PRE, SRE didn't ignore empty matches at the last position. you can never have too many test cases... |
|||
| msg307466 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2017年12月02日 21:48 | |
For history, this was fixed by 21009b9c6fc40b25fcb30ee60d6108f235733e40. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月10日 16:04:27 | admin | set | github: 35187 |
| 2017年12月02日 21:48:39 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg307466 |
| 2001年09月17日 16:27:45 | effbot | create | |