Hassan Schroeder wrote in post #1063853:
> Where exactly did you copy this broken example from?

He already put the link up in the first post:
http://ruby-doc.org/core-1.9.3/String.html#method-i-sub

sub and gsub are methods of String, not of Regexp.

-- 
Posted via http://www.ruby-forum.com/.