'How to swap two if and then statements
I have some code to reform (1000 lines) and I want to go from this
if $one=0 and $two=32 then $dist=1
if $one=0 and $two=15 then $dist=2
if $one=0 and $two=19 then $dist=3
To this
if $one=0 and $dist=1 then $two=32
if $one=0 and $dist=2 then $two=15
if $one=0 and $dist=3 then $two=19
In a few words swap both $two and its value with $dist and its value.
Can it happen with regular expressions of notepad+?
I tried:
if ([^ ]+) and ([^]+) then ([^]+)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
