Ola!
try: x = "3(1 i)4" x["(1 i)"] = ""
result: x -> "34" See Programming Ruby - page 609: =
Best regards, Jeroen