Skip to content

Instantly share code, notes, and snippets.

@arpitdalal
Last active February 2, 2021 18:29
Show Gist options
  • Select an option

  • Save arpitdalal/3c6ce7943d922f7d6793e29e87e2e304 to your computer and use it in GitHub Desktop.

Select an option

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment