i have a regular expression with a pattern that matches any href= tag in a string. i have a replace that matches the pattern and adds my code in.. the replace is shown below.<BR>url = objRegExp.Replace(java, " href=$1http:www.somewhere.com/TEST4.asp?direct="&direct2&"&xmlurl="&xmlurl2&"&di rect2=$2&xmlurl2=$3$4")<BR><BR>I need to server.urlencode the $3 in the replace above but have had zero luck. i have tried everything possible that I can think of. Is this even possible? I can supply more code if someone thinks they can help me out. Thanks in advance..<BR>