ww's failed $1 is: |f:\_wo\pl_test|. However, note my failure to capture the final '\' in the path $2 is: |f:\_wo\pl_test\669947.pl| $2 is the whole of $0 because lookarounds, when completed, discard all intermediate info