Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split up string between every "/" in url 1

Status
Not open for further replies.

kernal

Technical User
Feb 27, 2001
415
US
I'm using crystal 9 with a txt file. I have a field that contains urls and I need to extract the string between every "/" (not counting the "//" after "http:" or "https:"). Some urls might have one "/", some might have two "/" etc. so for something like:


I would want

2010
LIVING
07
27

Help is very appreciated.
 
I'm getting an error "a subscript must be between 1 and the size of the array" when I try to search for [6]. I found the following and so I added the ubound function with the split part and it seems to be holding up. Thanks

if ubound(split({column},'/')) > 5 then
split({column},'/')[6]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top