http://www.perlmonks.org?node_id=53416

dcardamo has asked for the wisdom of the Perl Monks concerning the following question: (regular expressions)

I have a filename with the entire path '/home/projects/..' The '..' means to go back a directory, so its real path is '/home' Can this be done with a regex or do I have to split this?

Originally posted as a Categorized Question.