I need a regular expression to parse a text The directory is
/home/foo/bar/hello.txt.
I would like to get the hello.txt and get rid of the rest of the directory, so i would like to delete home/foo/bar/ and only get the hello.txt
I need a regular expression to parse a text The directory is /home/foo/bar/hello.txt. I
Share
update: should work for paths as well 🙂
or