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
In reply to Re^4: Inherited a perl script...need help (almost)
by tye
in thread Inherited a perl script...need help
by iceotron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |