J
John Smith
Hi,
I'm trying to get the good_part from those directory path.
The beginning is always the same it is "dev/dir1/"
First case : dev/dir1/good_part -> should return good_part
Second case: dev/dir1/good_part/src ->should return good_part
3 case : dev/dir1/good_aprt/obj/html -> should return good_part
I'm able to get each case one at a time but not all of them
dev\/dir1\/(.*) on dev/dir1/good_part => $1 return good_part
dev\/dir1\/(.*)(\/.*) on dev/dir1/good_part/src => $1 return good_part
but don't work on dev/dir1/good_part
Remi
(e-mail address removed)
I'm trying to get the good_part from those directory path.
The beginning is always the same it is "dev/dir1/"
First case : dev/dir1/good_part -> should return good_part
Second case: dev/dir1/good_part/src ->should return good_part
3 case : dev/dir1/good_aprt/obj/html -> should return good_part
I'm able to get each case one at a time but not all of them
dev\/dir1\/(.*) on dev/dir1/good_part => $1 return good_part
dev\/dir1\/(.*)(\/.*) on dev/dir1/good_part/src => $1 return good_part
but don't work on dev/dir1/good_part
Remi
(e-mail address removed)