Notepad++ regex to replace match with the opposite value (true->false, and false->true)? -


I have a large text file, which has several lines like below, I want to swap their values. As if, value 1 if it changes to 0, if the value is 0 - replace it with 1.

  hidden = 0 hidden = 1  

I have not created any problems with 'search' rags:

  Hidden = = ([01] {1})  

My problem is working how to change it in the opposite way.

Nobody is going around it - it takes 3 steps:

< Pre> search | Hilde = 0 | Change Hide = X Hidden = 1 | Hide = 0 = X | Hidden = 1

But these are very simple.

If you actually have hidden = x in your code, then choose another character for X such as hidden =? is not found.


Comments