in reply to Read the directories from file
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*
|
|---|