H
holysmokes99
I am trying to grab the last bunch of text after the last forward
slash (/) in a url string. For example, I want to match "want" from
the string "http://www.hello.com/whatever/you/want". Using "/(.+)$" as
my regular expression yields "/www.hello.com/whatever/you/want", which
of course is not what I want. Any one able to help me out?
Thanks,
Marcus
slash (/) in a url string. For example, I want to match "want" from
the string "http://www.hello.com/whatever/you/want". Using "/(.+)$" as
my regular expression yields "/www.hello.com/whatever/you/want", which
of course is not what I want. Any one able to help me out?
Thanks,
Marcus