Dan
01-19-2001, 12:55 PM
im trying to turn something like <a href="file.asp">file</a> to <a href=file.asp>file</a><BR><BR>my regexp skills arent up to par, heres how i did it:<BR><BR>set o_regexp = new RegExp<BR> o_regexp.ignorecase=true<BR> o_regexp.global=true<BR> o_regexp.pattern="<.*(" & chr(34) & ")>"<BR> set o_matches=o_regexp.execute(str)<BR> if o_matches.count>0then<BR> for each o_match in o_matches<BR> str=replace(str,o_match.value,replace(o_match.valu e,chr(34),""))<BR> next<BR> end if<BR>set o_regexp=nothing<BR><BR><BR>im sure theres a much better way to do this, any suggestions?