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/.