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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -