title: What's the correct syntax for Regex in an Ecto Query?
body: <p>Neither of these work:</p>
  
  <p><code>from m in Model, where: m.name == ^~r(/.*#{query}.*/i)</code></p>
  
  <p><code>from m in Model, where: m.name =~ ^~r(/.*#{query}.*/i)</code></p>
  
  <p>What's the correct syntax? I can't find anything in the docs.</p>