Pronunciation / adjective
Bringing something good and unforseen.
    Skip Navigation Links > Code Repository
   

Use a regular expression to remove all punctuation from a string



 
Return

Use a regular expression to remove all punctuation from a string

This regular expression will remove all characters other than A-Z, 0-9, and spaces from a string.

  1. Dim Regex As New System.Text.RegularExpressions.Regex("[^a-z0-9 ]+", Text.RegularExpressions.RegexOptions.IgnoreCase)
  2. Regex.Replace([StringInWhichToReplace], "")


Return
Microsoft Certified Professional   © 2017 Fortunate.  All rights reserved.
contact: justin@aboutfortunate.com