in reply to Re^3: Inherited a perl script...need help (s///)
in thread Inherited a perl script...need help
s/(?!<\d)0300(?!=\d)/9999/g
should be
s/(?<![0-9])0300(?![0-9])/9999/g
My main point is that both look-behind and look-ahead were using the wrong syntax. My replacement of \d with [0-9] is likely not required.
- tye
|
|---|