Home>

The trick for regular expression link replacement functions is as follows:

1)

Character before string<a href="">character of any length</a>

Replaced with the preceding character<a href="">any length character</a>

2)

Character before string<a href="">character of any length</a>

Replaced with the preceding character<a href="">any length character</a>

3) If it is not in the above situation,Remove link directly

Character before string<a href="">character of any length</a&

Replaced with the characters before the characters of any length

function scripthtml (byval constr, ftype)
  dim re
  set re=new regexp
  re.ignorecase=true
  re.global=true
  select case ftype
  case 1
    re.pattern="regular expression"
    constr=re.replace (constr, "")
  case 2
    re.pattern="regular expression"
    constr=re.replace (constr, "")
  case other
  end select
  scripthtml=constr
  set re=nothing
end function

The above is the trick about regular expression link replacement function,Hope you like it.