Saturday, 24 August 2013

PHP regular expression for directory

PHP regular expression for directory

I need a regular expression that would take the string after the last
forward slash.
For example, considering I have the following string:
C:/dir/file.txt
I need to take only the file.txt part (string).
Thank you :)

No comments:

Post a Comment