in reply to Re: How to findout a sub string from the string
in thread How to findout a sub string from the string

wow and ++davido; the regexed monk offered a pre regex (clean and neet) solution using rindex ;=)

shame on me 'cause i never seen rindex before

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
  • Comment on Re^2: How to findout a sub string from the string

Replies are listed 'Best First'.
Re^3: How to findout a sub string from the string
by davido (Cardinal) on Feb 14, 2016 at 04:39 UTC

    :) Well to be fair I first toyed with using reverse and index, before thinking to myself... "hmmm... I seem to remember rindex being a thing."

    I wasn't immediately certain that my recollection of rindex came from Perl or another language. Most common languages probably provide something similar.


    Dave