Code:
     var %links /(?<=^|\s)((?>\S{3,8}:\/\/|w{3}\56)\S+)|\56( $+ %domains $+ )\b/iS
    if ($regex($1-,%links)) { 

I've been using that code for the longest time. Now, I'm trying to make a whitelist, I was thinking I could use the %links and set a switch on that. But I tried printing the variable by Msg # %links and I obviously get this:
Code:
 /(?<=^|\s)((?>\S{3,8}:\/\/|w{3}\56)\S+)|\56(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk|se|tv|html|ly)\b/iS 


How would I proceed to single out the link from $1- and print that to a variable instead?


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net