From: "Sashi K." Date: 2011-12-26T10:52:51+09:00 Subject: Scan - variable as pattern I want to define a variable, like: s='.' And then use that variable as an argument for scan str.scan(/s/) In the above I want the . substituted for s. Is there any way this can be done - pass a variable to scan? Thanks -- Posted via http://www.ruby-forum.com/.