From: "Jan E." Date: 2012-06-09T23:14:03+09:00 Subject: Re: Ruby API sub and gsub error? Hi, There's no opening / delimiter for the %r syntax: "hello".sub(%r/[aeiou]/, '*') And if you're using / delimiters anyway, you can just leave out the %r: "hello".sub(/[aeiou]/, '*') -- Posted via http://www.ruby-forum.com/.