How to strip out numeric characters only from a string

@Serran_Neru

try this

string b= System.Text.RegularExpressions.Regex.Replace(“string_Variable”,“\D”,“”)

It will replace all the characters other than digits and return only digits.

Regards,
Mahesh

28 Likes