in reply to Read the directories from file

Hello, you have stil not understood how to compose effictively a node?  <c>..</c> tags are intended to hold code and input/output data: not the whole question.

You know monks can be very susceptibles after many years passed in their cells sudiyng Scriptures.

That said your output come from your regular expression: /^LOCATION:\s*(\S+)/ captures ../set/projects/all/files if given LOCATION:../set/projects/all/files as input.

If you do not want the two dots to be captured you can put it outside capturing parens. Dots must be escaped in regexes because they are special chars. So I guess that /^LOCATION:\s*\.\.(\S+)/ shold not capture the two unwanted dots.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.