mindlessLemming
11-04-2004, 04:01 AM
Yep, me again... :o
Regex confuses the #!@% out of me and I'm not even sure if that's what I should be using for this task, so here goes:
I am looking for a way to strip a string back to the last occurence of '/'.
eg: 'http://yoursite.com/blog/index.php' would become 'http://yoursite.com/blog/'
Little help? :)
Regex confuses the #!@% out of me and I'm not even sure if that's what I should be using for this task, so here goes:
I am looking for a way to strip a string back to the last occurence of '/'.
eg: 'http://yoursite.com/blog/index.php' would become 'http://yoursite.com/blog/'
Little help? :)