regex - pattern for matching a filepath -


can please tell me grep pattern matching following filepath:

../any_directoryname/filename.txt

i know filename. any_directoryname keeps on changing.

thanks in advance,

regards

john

try this:

\.\./[^/]+/filename.txt 

this assumes 1 directory. if can more that, try

\.\./[^\r\n]+/filename.txt  

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -