From: T5in9tao Tsingtao Date: 2007-11-28T00:13:03+09:00 Subject: Match every word except a substring Hi, I try to write a regexp which match all possible chars, except a substring (like tag in my case). @Regexp = '.*(){0}' text = '...a simple string' puts text.scan(/#{@Regexp}/).to_s Normaly, that could be okay because of {0} but Ruby return nothing. Do you have a idea about? Thanks. -- Posted via http://www.ruby-forum.com/.