in reply to Removing data from a string with Regex
$from =~ /^([^@]+)@/; $from = $1;
which would substitute the '@' and anything that followed with nothing.$from =~ s/@.*//;
-><- -><- -><- -><- -><-
All things are Perfect
To every last Flaw
And bound in accord
With Eris's Law
- HBT; The Book of Advice, 1:7
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Removing data from a string with Regex
by pike (Monk) on Nov 15, 2001 at 13:46 UTC | |
by CharlesClarkson (Curate) on Nov 15, 2001 at 23:01 UTC |