PDA

View Full Version : Auto-linking Problems Fixed!


Keefe
12-31-2001, 02:59 AM
I would just link to let everyone know that I think I have fixed all the autolinking problems. SPAMThere should be no more spaces and random
's in the links.

:)

For anyone who wants the exact details, its involed replacing...

SPAM SPAM SPAMif( $autolinkurls ) {
SPAM SPAM SPAM SPAM SPAM SPAM$message =~ s~([^\w\"\=\[\]]|[\n\b]|\A)\\*(\w+://[\w\~\.\;\:\,\$\-\+\!\*\?/\=\&\@\#\%]+[\w\~\.\;\:\$\-\+\!\*\?/\=\&\@\#\%])~$1$2~isg;
SPAM SPAM SPAM SPAM SPAM SPAM$message =~ s~([^\"\=\[\]/\:\.]|[\n\b]|\A)\\*(www\.[\w\~\.\;\:\,\$\-\+\!\*\?/\=\&\@\#\%]+[\w\~\.\;\:\$\-\+\!\*\?/\=\&\@\#\%])~$1$2 (http://$2)~isg;
SPAM SPAM SPAM}

With...
SPAM SPAM SPAMif( $autolinkurls ) {
SPAM SPAM SPAM SPAM SPAM SPAM$message =~ s~([^\w\"\=\[\]]|[\n\b]|\A)\\*(\w+://[\w\~\.\;\:\,\$\-\+\!\*\?/\=\&\@\#\%]+\.[\w\~\;\:\$\-\+\!\*\?/\=\&\@\#\%]+[\w\~\;\:\$\-\+\!\*\?/\=\&\@\#\%])~$1$2~isg;
SPAM SPAM SPAM SPAM SPAM SPAM$message =~ s~([^\"\=\[\]/\:\.(\://\w+)]|[\n\b]|\A)\\*(www\.[^\.][\w\~\.\;\:\,\$\-\+\!\*\?/\=\&\@\#\%]+\.[\w\~\;\:\$\-\+\!\*\?/\=\&\@\#\%]+[\w\~\;\:\$\-\+\!\*\?/\=\&\@\#\%])~$1$2 (http://$2)~isg;
SPAM SPAM SPAM}

Uranium-235
12-31-2001, 03:16 AM
dat perl?

Simo
12-31-2001, 07:38 AM
It sure is.

Aint it pretty?