title: Regular Expressions in Elixir case
body: <p>Can you use a Regular Expression inside a <code>case</code> in Elixir?</p>
  
  <p>So something along the lines of this:</p>
  
  <pre><code>case some_string do
    "string"        -&gt; # do something
    ~r/string[\d]+/ -&gt; # do something
    _               -&gt; # do something
  end
  </code></pre>