Tag:Regular expressions detect functions that begin with HTTP

  • ASP regular expression detects functions beginning with HTTP

    Time:2021-10-17

    ‘#################################### ‘function: ishttp [STR]‘parameter: STR, string to be processed‘author: Mu Mu‘date: July 12, 2007‘description: check whether the HTTP connection address or address bar starts with HTTP‘example: <% = ishttp( http://www.alixixi.com )%>‘#################################### Function ishttp(str) Dim regEx Set regEx = New RegExp regEx.Pattern = “^(http|HTTP)[A-Za-z]{0,1}\:\/\/” ishttp = regEx.Test(str) End functionVerify that the email address meets the standards<% ‘****************************** ‘function: isEmail (strng)‘parameter: strng, email address to be verified‘author: alisisi‘date: […]