ok i think i asked the wrong question what i am trying to do is scan the $ial for this format *!*@ipaddress if there is a match i want to then return that info but i want to return it in the format $address($nick,5) like nick!user@ipaddress sorry for not getting it right the forst time and thx for any help smile