J
Josselin
HNYTAOY (Dry version of ... Happy New Year To All Of You)
I am trying to get an array of email addresses from a string , as this
string is coming from an input textarea in a from, even if I ask for a
blank between each address, users will also enter some return
characters...
so I get something like :
to_string =
"(e-mail address removed)\r\[email protected]\r\[email protected]
(e-mail address removed)"
I know how to use a_string.scan(" "), but here I should use a regex..
after many try .. could not find the correct one..
could someone make 2007 starting on right tracks.... thanks a lot !!
joss
I am trying to get an array of email addresses from a string , as this
string is coming from an input textarea in a from, even if I ask for a
blank between each address, users will also enter some return
characters...
so I get something like :
to_string =
"(e-mail address removed)\r\[email protected]\r\[email protected]
(e-mail address removed)"
I know how to use a_string.scan(" "), but here I should use a regex..
after many try .. could not find the correct one..
could someone make 2007 starting on right tracks.... thanks a lot !!
joss