in reply to
Re: Regex being stupid
in thread Regex being stupid
Looks good, and I didn't know you can't use \w in the replacement part of s/. Also, the code fragment may have errors inside the quotes itself (I updated it however - thanks for pointing that out), but the quotes and the way the variable is set is not what actually happens in my code, it was just an attempt at speeding the question along to ask, basically, "you have a weird variable, grab email address nao".
Many thanks for your help, I will give it a try :)