probably i am misunderstanding this but ? if this is the response
:irc.ukchatterbox.com 320 mynick targetnick :is 19/male
wont this
Age: $gettok($4,1,47) - Sex: $gettok($4,2,47)
return the number 1 for age and the number 9 for sex ?