hey thanks this worked. another quick question though:
how would make the link open in a new window?
thanks again
morc
> Sounds like you need a HTMLEncode function, you should take
> a look at:
[quoted text clipped - 10 lines]
>
> Matt
javabuddha@gmail.com - 18 Jan 2006 22:35 GMT
This is more of a javascript question actually, but take a look at:
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html
Good luck,
Matt
> hey thanks this worked. another quick question though:
> how would make the link open in a new window?
>
> thanks again
> morc
steen - 19 Jan 2006 08:09 GMT
> hey thanks this worked. another quick question though:
> how would make the link open in a new window?
>
> thanks again
> morc
Well the easy answer would be to simple extend the regular expression
like so:
str = str.replaceAll("((https?|ftp)://|mailto:)[^\\s<]+", "<A
TARGET=\"_new\" HREF=\"$0\">$0</a>");
/Steen
questionmarc420@msn.com - 19 Jan 2006 15:01 GMT
thanks eveyrthing worked.
but i ran into a little problem, i was wondering if anyone knew waht i
should do.
lets say the text is "(www.blahblah.com)"
the code will include the ")" at the end of the string. Anyone know a
way around this?
thanks
morc