^a-zA-Z0-9 Excluding Spaces?


Answer :

You could also try with:

/[^a-zA-Z0-9\s]/gi 

If you only want to exclude spaces use:

[^ ]* 

Test the regex here if you want.


Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy