Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my code
- -------
- Dim str1 As String = "!@!@#!$@#$#123456habAB^*^&(*)(_)()*("
- Dim str2 As String = Regex.Replace(str1, "[[]\^$.|?*+(){}%,;><!@#&-+]", "")
- MsgBox(str2)
- am getting the result like
- --------------------------
- 123456habAB_
- expected result
- ---------------
- 123456
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement