You can use
000 instead of
..., which means that it will only be replaced by
036 if positions 137-139 will be zeroes on a line that starts with
4000. Any other value will not get replaced, and be left as is..
If you use
... then any value there will be replaced.
Also, if on a line that starts with
4000 positions 137-139 will always be zeroes (the way I interpreted your specification) , then it does not matter what you use..
--- edit ---
As is apparent in
another thread if 000 is used instead of ... then anchoring is needed to the beginning of the line in the form of a caret (
^ ) otherwise it will try to match 000 with 136 arbitrary characters before it ..