Extract keyword from string

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

Extract keyword from string

Post by mzfp2 »

HI,

Just looking to extract a keyword from the end of a string which is formatted in the following format

http://localhost/site/search/Keyword/

Keyword can be any alphanumeric string with spaces and commas

Hope someone can help

Many Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

no regex required: basename()
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

Post by mzfp2 »

Feyd,

Thankyou that was lightening fast response, and it works a treat!
Post Reply