hello
how to part of string with other
i.e.
string x = “3(1i)4”
x.replace("(1i"),"")
x = “34”
how to do that in RoR?
hello
how to part of string with other
i.e.
string x = “3(1i)4”
x.replace("(1i"),"")
x = “34”
how to do that in RoR?
Ola!
try:
x = “3(1 i)4”
x[“(1 i)”] = “”
result:
x → “34”
See Programming Ruby - page 609: []=
Best regards,
Jeroen
On Jul 17, 9:39 pm, Mohamed S. [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs