0

How can I remove the first letters in my string when I don't know how many '0' characters I have at the beginning of my string. Additionally the '0' should not removed from the string when it is not in the beginning.

For instance, remove 0 from:

000000000000000000000000000000000000000000000The sun is going up at 06:30pm


00000000000000000000000000000Finally it is over

to get:

The sun is going up 06:30pm
Finally it is over
Sam S.
  • 143
  • 1
  • 3
  • 12

0 Answers0