On Tue, May 19, 2020 at 8:10 PM Henk-Jaap Wagenaar <
[email protected]> wrote:

> David (or somebody else) could you give us some, as real as possible,
> examples? This will strengthen the case for it!
>
> I am confident they exist and are pretty plentiful but I myself am coming
> up blank thinking about it for a few minutes and documenting them would be
> good for discussion.
>

I agree, I can't think of use cases for this.

Another way to solve this:

```
>>> re.sub(r"[123]{,4}$", "", "abc123123")
'abc12'
```
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/YASMSLVYHOH4VN5UJDCLFLV6XCGVYOFP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to