Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

remove all letters from string c#

// add directive at the top 
using System.Text.RegularExpressions;

string numberOnly = Regex.Replace(s, "[^0-9.]", "")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #letters #string
ADD COMMENT
Topic
Name
2+9 =