Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hiya Monks,
How can I delete the last digit part from a line. For example,
$line= "piratesofcareebian100"; $line= "pirates of careebian100"; $line= "pirates of careebian 100";
I only need from "pirates" upto "careebian".
How can I have only the alphabet part and delete the digit part using a regex.
Thank you.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex Help
by 2teez (Vicar) on Mar 28, 2013 at 05:42 UTC | |
by Anonymous Monk on Mar 28, 2013 at 05:51 UTC | |
by 2teez (Vicar) on Mar 28, 2013 at 06:21 UTC | |
by Anonymous Monk on Mar 28, 2013 at 07:56 UTC | |
by hdb (Monsignor) on Mar 28, 2013 at 08:26 UTC | |
|
Back to
Seekers of Perl Wisdom