RegEx to Produce a valid variable name

Replace all matches of the below regex with an empty string to create a valid variable name
^[\d]*|[^\w]*
Posted by
Snippet Viewed 1675 times.

Share your RegEx code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.

 

Submit | Browse

Most Recent regex snippets

Most Viewed