How to filter numeric value and remove all unnecessary characters?

In below example will see how to filter numeric value (0-9) and remove all unnecessary characters from a string by using regular expression.

Related Answers