title: Convert string with modifier to Ruby regular expression
body: <p>How to convert string <code>"/russia/i"</code> to regular expression <code>/russia/i</code>.</p>
  
  <p>I know about <code>Regexp.new str</code> and <code>/#{str}/</code>, but this does not work in case of modifier.</p>