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

haskell - Using filter on an item in a list? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -

c# - Binding attached property to IEnumerable -