This regex can be used to only allow numbers and spaces, may it be in a phone number or any other place where only numbers or spaces should be allowed.
[code]
^[\s\d]*$
[/code]
Web development and technologies | egeek
ASP.NET, C#, Azure, SQL, Server, Umbraco, Sitecore, Git and other stuff I find useful
This regex can be used to only allow numbers and spaces, may it be in a phone number or any other place where only numbers or spaces should be allowed.
[code]
^[\s\d]*$
[/code]