http://qs1969.pair.com?node_id=261256


in reply to parsing question

Unfortunately your question isn't terribly clear, so I'm not entirely sure what you're looking for.
However, one thing I would suggest - if you want to match after the last occurance of something, it may be easier to apply a regex to a reversed string, e.g:
my $reverse = reverse $line; $reverse =~ s| \w* ; \s* > |>|x; $line = reverse $reverse;