Nov 08, 2013; 09:45
Paul Melia
Selecting Parts of an URL
Hello List,
I have code that is extracting the last part of URLs but I now want to separate a URL into parts.
Goal:
Process
"www.foo.com/1/11082013/todays-news-item"
into
var(articlenumber=1)
var(articledate=11082013)
var(articletitle=todays-news-item)
Currently, I am using the following code to capture and process URIs:
var(pagelocation=(web_request->fcgiReq->requestParams->find(::REQUEST_URI)->asString->split('/')->last))
Any assistance is greatly appreciated!
Thanks,
Paul
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Nov 08, 2013; 10:01
Jonathan Guthrie
Re: Selecting Parts of an URL