Hi, PERL shows this line ok, but for the next lines it tells: String found where operator expected at line...
m/\(\*[ ]+\"\@PATH\"[ ]+:=[ ]+'(\/)?([\*A-Za-z_ ]*(\/)?)+'[ ]\*\)?/)) So it seems that it is not ok. I have the proper regexp that was tested at http://www.regexr.com/ # Tested version: \(\*[ ]+@PATH[ ]+:=[ ]+'(\\/)?([\*A-Za-z_ ]*(\\/)?)+'[ ]\*\)? Input data: (* @PATH := '\/ph\/** Forest\/Apple' *) (* @PATH := '\/ph\/** Forest\/Pear' *) (* @PATH := '\/ph\/** Forest\/Tree\/Plum' *) (* @PATH := '\/ph\/** Forest\/Oaktree\/Oak' *) If I use the tested version, it tells: Unmatched ( in regex; marked by <-- HERE in m/..........:=[ ]+'( <-- HERE at ..... line.... Tamas