Filter Phone numbers

I have many phone numbers formats in a json file, how can i do a search filter that will find the right numbers?

Search input number: +14181231234

In my json each number can be formated this way.

(418) 1231234
418 123 1234

I finally made a phone filter and make it work with angular libphonenumber