First truly contact regular expression

xiaoxiao2021-03-06  675

I used to hear it before, today I saw the specific example of the forum for the first time.

<% Function GetTextFromHTML (strHTML) DIM STRPATRN STRPATRN = "<. *?> 'Regular expression string DIM regex set regex = new regexp' Defines a regular expression object regex.pattern = strpatrn regex.ignorecase = true ' The properties of the expression object are assigned. Ignore the case regex.global = true 'Looking from the entire string to match GetTextFromHTML = regex.replace (strHtml, "")' to replace the matching string into an empty string END FUNCTION

Response.write gettextfromhtml ("

The main function is to take the character between the

转载请注明原文地址:https://www.9cbs.com/read-105458.html

New Post(0)