Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-04-21 08:09 GMT
Find Nodes?
    Voting Booth?