Am 07.06.22 um 23:01 schrieb Christian Gollwitzer:

In [3]: re.sub(r'^\d+\s*', '', s) Out[3]: 'Trinket'


that RE does match what you intended to do, but not exactly what you wrote in the OP. that would be '^\d\d.' start with exactly two digits followed by any character.

        Christian
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to