Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Take last instance of a string

by ww (Archbishop)
on Aug 30, 2016 at 17:28 UTC ( #1170804=note: print w/replies, xml ) Need Help??

in reply to Take last instance of a string

What have you tried? What docs have you read?

We're here to help you learn; NOT to write your code.

In the interest of learning, however, see the Tutorials re regular expressions.

Alternately (and a very bad plan, usually), capture all the desired phrases to the end of the file (into an array) and then select the last element of the array. (But, again, you'll need to study regexen.).

Yet another gimmé request!
Sorry, we expect SOPW to seek wisdom, not to ask us to do so for them.

Replies are listed 'Best First'.
Re^2: Take last instance of a string
by porsche5k (Novice) on Aug 30, 2016 at 17:35 UTC

    Thanks for the reply, I understand where you're coming from. I'm not looking for anyone to write my own code, I'm just wondering if there is a way to match on the last instance of a string.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1170804]
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: Oooh - finally, I can say no lazy; :)
[Corion]: But it's another The::Net incarnation, too sad ;)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2018-07-17 08:10 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (358 votes). Check out past polls.