a small correction of mine. i wanted to match not only last part but beggining of last part . so your solution is ok and thanks. Based on it with a small addition i can match the beggining of the last part of full path.
So: 'm[^\/]*$' (why \ needs quoting? , i think is not special character in perl reg exprs) 'm[^/]*$' it will also match /bla/bla/blma And to match the beginning of the last part of full path : '.*/m[^/]*$ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201302250306.46013.apreka...@gmail.com