Answer the question
In order to leave comments, you need to log in
How to find strings other than certain ones and replace a substring there by regexp in powershell?
There is a need to look for lines with an IP address in the configs and change them. There are lines that fall under the general IP address search regexp containing the substring 'Version=4.0.0.0', they cannot be touched. I tried to solve the problem like this: pasted.co/e81d82be
The final file does not include lines that contain the substring "Version ", although they should be there, you just don't need to change anything in them. How to handle this situation correctly?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question