Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. my code
  2. -------
  3. Dim str1 As String = "!@!@#!$@#$#123456habAB^*^&(*)(_)()*("
  4. Dim str2 As String = Regex.Replace(str1, "[[]\^$.|?*+(){}%,;><!@#&-+]", "")
  5.  
  6. MsgBox(str2)
  7.  
  8. am getting the result like
  9. --------------------------
  10. 123456habAB_
  11.  
  12.  
  13. expected result
  14. ---------------
  15. 123456
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement