I see many questions asking how to remove leading zeroes from a string, but I have not seen any that ask how to remove any and all leading digits from a string.
I have been experimenting with combinations of
, slice notation and regex without yet finding a method.
Is there a simple way to do this?
- "123ABCDEF" should become "ABCDEF"
- "ABCDEF" should stay as "ABCDEF"
- "1A1" should become "A1"
- "12AB3456CD" should become "AB3456CD"