I want to creating regex to remove some matching string, the string is phone number
Example user input phone number like this:
+jfalkjfkl saj f62 81 78
I don't know what language you plan on using this in, but you can replace this pattern: [^\d]+, with an empty string should accomplish this. It'll remove everything that's not a number.
[^\d]+