On Tue, May 19, 2020 at 8:10 PM Henk-Jaap Wagenaar < wagenaarhenkj...@gmail.com> 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/YASMSLVYHOH4VN5UJDCLFLV6XCGVYOFP/ Code of Conduct: http://python.org/psf/codeofconduct/