From: Gunther Gunt Date: 2008-08-13T23:10:20+09:00 Subject: Regular expression: anything except 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 Can you help me ? Thank you. Gunther -- Posted via http://www.ruby-forum.com/.