How to filter numeric value and remove if 1st character is zero?

In below example will see how to filter numeric value (1-9) and remove all unnecessary characters and if 1st character is zero from a string by using regular expression and charAt method.

Related Answers