Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hiya Monks, I have a doubt regarding perl regex, Pls can you look into this,
$string = "/qwjhj/sdvbb/vuvs/tryt3687fbhvh/vv1vh/382411" $string = "/qwj23hj/sdx4vbb/vu6vs/tryvh/vv1sdfvh/382412" $string = "/qwjhj/sdvbb/vuvs/t3687fbhvh/vv1/123v1vh/382413" $string = "/qwj35hj/sd3vbb/vuf3vs/tr334tg3vh/vv1c45vh/382414"
I need to extract the last numbers(382411 or 382412 or 382413 ...) in each string. Can you pls suggest me a way to do this.
If my question is too basic, I am sorry, I am not a programmer. :), Thanks to all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Regex
by Kenosis (Priest) on Nov 15, 2012 at 05:25 UTC | |
|
Re: Perl Regex
by roboticus (Chancellor) on Nov 15, 2012 at 11:45 UTC | |
|
Re: Perl Regex
by rovf (Priest) on Nov 15, 2012 at 09:10 UTC | |
by parv (Parson) on Nov 15, 2012 at 09:32 UTC | |
|
Re: Perl Regex
by choroba (Cardinal) on Nov 15, 2012 at 08:06 UTC | |
|
Re: Find number at string end
by Anonymous Monk on Nov 15, 2012 at 05:58 UTC |