ror, how to make a regex dynamic?
given this:

    if (params[:to].to_s =~ (/^r\+.*@site.com$/)) == nil

How can I make site.com dynamic to: `#{SITE_CONFIG['mail_host']}`

I tried

    if (params[:to].to_s =~ (/^r\+.*@#{SITE_CONFIG['mail_host']}$/)) == nil

Which did not work.. ideas?
ror, how to make a regex dynamic?
===

given this:

    if (params[:to].to_s =~ (/^r\+.*@site.com$/)) == nil

How can I make site.com dynamic to: `#{SITE_CONFIG['mail_host']}`

I tried

    if (params[:to].to_s =~ (/^r\+.*@#{SITE_CONFIG['mail_host']}$/)) == nil

Which did not work.. ideas?