I found many references on replacing with regex but I could not find a way to do what exactly I need.
For example I have txt with about 15k bits of code i need to change all need -1 their current value.
is_magic = 0 mp_consume2 = 9
In this case 9 would need to be changed to 8. There are thousands of these ranging in value from 6 up to 250. is_magic defines its type and needs to be included or the changes would be applied to other groups where the change is not needed.
I tried various regex and wildcard examples but always it in some way, shape or form broke the file, and starting to lose hair. Maybe this just cannot be done with Notepad++ ?