regex - Regular Expressions and EditPlus -
i'm using edit plus , have following type of lines in text file represent directory structure , file.
\apps\mccsdocs\general\10-11 arrat\bridge river_\bridge river-pa0900021_dec 21.pdf \apps\mccsdocs\general\10-11 arrat\burns lake\burnslake_pa1100062-se_mar2010.xls \apps\mccsdocs\general\10-11 arrat\campbell river\campbellriver_pa0900004_arrat_oct2010.pdf
what need grab directory structure \apps\mccsdocs\general\10-11 arrat\bridge river_\
, place in buffer /1
, grab file name bridge river-pa0900021_dec 21.pdf
, place in buffer /2
.
if easier start @ end of line , grab file name , grab left, work too.
(\\.*\\.*\\.*\\.*\\.*\\)(.*) \\ = literal \ .* =
the result be:
\apps\mccsdocs\general\10-11 arrat\bridge river_\=======bridge river-pa0900021_dec 21.pdf \apps\mccsdocs\general\10-11 arrat\burns lake\=======burnslake_pa1100062-se_mar2010.xls \apps\mccsdocs\general\10-11 arrat\campbell river\=======campbellriver_pa0900004_arrat_oct2010.pdf
is want?
Comments
Post a Comment