in reply to regex meaning

  • ^ matches the start of the string
  • 0+ matches one or more zeroes
  • (?= followed by
  • \d a number

    it will substitute those zeroes with nothing. so it removes leading zeroes iff they are followed by a number

    Oha