Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

splitting the url based on condition

$
0
0


Hi Team,

 

I need to show the data from different tables and among them url is one fof the column. Actually i am splitting the column (that is url column) by "/" .but some times if "/" is not present in the url ,it is showing the column as blank.

 

My issue is splitting the url based on some condition .

I need to split the url based on the top most right one.if that is not present it should not split.

 

example 1: http://microsoft.com/en-us
in this case result should show the en-us

 

example 2: http://microsoft.com
in thi case result should show complete url like http://microsoft.com

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 213819

Trending Articles