assuming you want to avoid color codes getting in the way, you would use $strip to sanitize the input. $1 would only be the 1st word, so you'd want $1- to peek at all words. Have a look at this and other links at https://en.wikichip.org/wiki/mirc/token_manipulation

If you want to match the 1st word beginning with http, you could do like:

//tokenize 32 foo bar httpSTUFF test foo | echo -a $wildtok($strip($1-), http*, 1, 32)