i have some replacement’s and would like to use the “in place
operator”.
How is it possible doing more than one repalcement, i thought i read
something
to hang the gsub method one after another, but it dosn’t work!?
First, I don’t think the * is doing what you think it is. ‘ruby -
pi.bak’ is probably what you want. Second, it’s more efficient to use
one regex when you don’t really need two.
First, I don’t think the * is doing what you think it is. ‘ruby -
pi.bak’ is probably what you want. Second, it’s more efficient to use
one regex when you don’t really need two.
many thanks’s , it’s too bad but i have a lot of replacment’s
difficult to combine.
The hint for “;” instead of “.” is my solution and now i recognize why
my replaced file end with $$$ instead of *.bak
like in perl.
regards, Christian
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.