Laura
0
Q:

vb.net remove non numeric characters from string

var input = "+33 06 06-78-75 aze";
var result = new string(input.Where(c => char.IsDigit(c)).ToArray());
//result => "3306067875"
1
public static string RemoveNonNumeric(string value) => Regex.Replace(value, "[^0-9]", "");
0

New to Communities?

Join the community