senthilkumarperl has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have input like
my $in="foo bar foo bar foo senthil";
If i use this Regular Expression like (a-zA-Z+). I will get output like
foo bar foo bar foo senthil
But I want to get last matches of senthil alone by Regular Expression
Is there any regular Expression for getting last matches
senthil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get last matches of the given string
by Ratazong (Monsignor) on Jun 06, 2011 at 08:38 UTC | |
|
Re: get last matches of the given string
by bart (Canon) on Jun 06, 2011 at 10:43 UTC | |
|
Re: get last matches of the given string
by Marshall (Canon) on Jun 06, 2011 at 11:55 UTC | |
|
Re: get last matches of the given string
by Anonymous Monk on Jun 06, 2011 at 08:26 UTC |