in reply to Problem with a multi-line regexp
Try:
which will do the substitution for the first table1.column3 found on or after each select line.perl -pi -we '/select/ .. s/table1\.column3/DUMMY_ID/'
Also, \1, \2, etc. are better written as $1, $2, etc. on the right side of a substitution., as you would have been told if you'd enabled warnings.
|
|---|