From: Muhammad Salman Date: 2012-10-29T10:22:35+09:00 Subject: Re: Newbie : Regular expression 7stud -- wrote in post #1081740: > r = 'hello' > str = 'hello' > > if Regexp.new("(^#{r}$)").match str > puts "Yep" > puts $1 > end > > --output:-- > Yep > hello Thanks for the prompt reply. Can you explain a bit about #{r}. What that means ?? -- Posted via http://www.ruby-forum.com/.