Last active
February 2, 2021 18:29
-
-
Save arpitdalal/3c6ce7943d922f7d6793e29e87e2e304 to your computer and use it in GitHub Desktop.
Regular Expression to remove spaces, both round brackets, hyphens, and full stops from a text. Mainly used to remove these characters from a phone number to use it in an anchor tag.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /([ ()-.])/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment