in reply to Re^4: Inherited a perl script...need help (s///)
in thread Inherited a perl script...need help
Bear in mind that a sed style pattern replace like that is a substring match. So it will _also_ match longer numbers of which that's a substring. You need to anchor it - either with lookaround (which restricts a pattern from matching based on what happens before/after it) - or you can match on something like \b which is a word boundary.
|
|---|