23
rated 0 times
[
30]
[
7]
/ answers: 1 / hits: 20430
/ 10 Years ago, tue, december 16, 2014, 12:00:00
If I have a file path such as:
var/www/parent/folder
How would I go about removing the last folder to return:
var/www/parent
The folders could have any names, I'm quite happy using regex.
Thanks in advance.
More From » regex