help to make a ruby text substitution with gsub

0

I have the text:     if alice < > 1234 then     go to restart     endif     if alice = 1234 then     go to restart2     endif and I'd like to replace it with

cmp,ebx,1234
jnz restart

cmp,ebx,1234
jz restart2

I would appreciate any help

what I have done so far is to use the substring the problem is that the goto depends on whether it was jnz or jz that I used before = or < > so I do not know what to do

    
asked by Max Power 14.10.2018 в 04:49
source

0 answers