Ok, here is what I am looking for:
I have an $ENV{VARIABLE} that looks like this:
C:\Data\IBM\wsad\workspace\my_workspace_project\MCMNET\MCMNET\another directory\JSP\file_name.jsp
***Take note that the file structure and their file names could have spaces.
Now, I have tried several times to just get a certain section of this URL parsed out. I have tried split(), pop(), shift()...but I just can't quite get it right.
What I need is to get the \MCMNET\MCMNET\anotherdirectory\JSP\ out. Even if the file_name.jsp had to stay that would be fine. Does anyone have any ideas or tips?
Go Tech!
I have an $ENV{VARIABLE} that looks like this:
C:\Data\IBM\wsad\workspace\my_workspace_project\MCMNET\MCMNET\another directory\JSP\file_name.jsp
***Take note that the file structure and their file names could have spaces.
Now, I have tried several times to just get a certain section of this URL parsed out. I have tried split(), pop(), shift()...but I just can't quite get it right.
What I need is to get the \MCMNET\MCMNET\anotherdirectory\JSP\ out. Even if the file_name.jsp had to stay that would be fine. Does anyone have any ideas or tips?
Go Tech!