finding quotation or apostrophe

Results 1 to 2 of 2

Thread: finding quotation or apostrophe

  1. #1
    Join Date
    Dec 1969

    Default finding quotation or apostrophe

    I&#039;m using the code below to strip HTML tags from a text string. In addition to HTML i also want to remove &#039; and " characters from the string. How can I modify the code below to account for the added requirement?<BR><BR>&#060;%<BR>Function stripHTML(HTMLstring)<BR><BR>Set RegularExpressionObject = New RegExp<BR><BR>With RegularExpressionObject<BR>.Pattern = "&#060;[^&#062;]+&#062;"<BR>.IgnoreCase = True<BR>.Global = True<BR>End With<BR><BR>stripHTML = RegularExpressionObject.Replace(HTMLstring, "")<BR>Set RegularExpressionObject = nothing<BR><BR>End Function<BR>%

  2. #2
    Join Date
    Dec 1969

    Default RE: finding quotation or apostrophe

    .Pattern = "(?:&#060;[^&#062;]+&#062;)&#124&#039;&#124" & Chr(34)<BR><BR>Chr(34) being the Ascii value for ".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts