Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: phranque
Could someone please help me with parsing a string? Here is an example of what I have now:
if instr(strOrigURL,"/applications/") >0 then
Selection = "applications"
intStart = instr(strOrigURL,"/applications/") + 14
intApplications = replace(mid(strOrigURL,intStart),"/","")
What I want to be able to do is pass in a link value of something like /applications/10.html, and then parse out the 10. The current code above would return 10.html
Any help would be greatly appreciated.
folderName = "/applications/"
folderLength = len(folderName)
offset = instr(location.search, folderName)
if offset > 0 then
fileName = mid(location.search, offset + folderLength)
alert("invalid file name")