Remove letters and special characters when entering phone number

时间:2015-07-28 16:47:18

标签: vb.net string

Can anyone please help me create a program that will delete special characters, like -, (, ) or spaces, when entering phone number?

1 个答案:

答案 0 :(得分:0)

dim number as string = Regex.Replace(phoneNumber,"[^0-9]","")