Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to get the number in oldValue and set it to a new value my new value should look like this :$oldValue = "UPNOON_0303.doc";
I tried split but not sure if it is the righ way , can some one help :$newValue = "0303";
my $newValue=split("_",$oldValue,2);
janitored by ybiC: Rename from less-than-descriptive "regx issue"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove non-numerics from string
by Roy Johnson (Monsignor) on Jan 26, 2004 at 18:11 UTC | |
|
Re: Remove non-numerics from string
by svsingh (Priest) on Jan 26, 2004 at 18:02 UTC | |
|
Re: Remove non-numerics from string
by captain_haddock (Novice) on Jan 26, 2004 at 19:51 UTC | |
by ysth (Canon) on Jan 26, 2004 at 23:59 UTC | |
|
Re: Remove non-numerics from string
by Not_a_Number (Prior) on Jan 26, 2004 at 20:13 UTC |