On Tue, Nov 2, 2010 at 5:50 AM, Larsen, Henning Engelbrecht <
h...@risoe.dtu.dk> wrote:

> I want to search a string for patterns but starting the search from the
> _end_ instead of from the beginning, using a regular expression.
>
>
Try something like this:

$string = "...looong string possibly with many E's.......E.....no capital e'
here...3456"
$string =~ m/E[^E]*$/;

The expression matches a capital E, followed by zero or more non-E
characters, and the end of the line.

-- 
Robert Wohlfarth

Reply via email to