From: Lars Haugseth Date: 2008-08-13T23:47:24+09:00 Subject: Re: Regular expression: anything except * Gunther Gunt wrote: > > Hello, > > I am trying to create a regular expression with the following rule: > > my text is: > blabla > I want to replace with something > > "".gsub(/the magic regular expression/,"replacement") > ==> replacementblabla > > but i want also that > "blabla".gsub(/the magic regular expression/,"replacement") > returns the same result > ==> replacementblabla > > and > blabla".gsub(/the magic regular > expression/,"replacement") > returns the same result > ==> replacementblabla /]*>/ -- Lars Haugseth "If anyone disagrees with anything I say, I am quite prepared not only to retract it, but also to deny under oath that I ever said it." -Tom Lehrer