title: How to pattern match using regular expression in Scala?
body: <p>I would like to be able to find a match between the first letter of a word, and one of the letters in a group such as "ABC". In pseudocode, this might look something like:</p>
  
  <pre><code>case Process(word) =&gt;
     word.firstLetter match {
        case([a-c][A-C]) =&gt;
        case _ =&gt;
     }
  }
  </code></pre>
  
  <p>But how do I grab the first letter in Scala instead of Java? How do I express the regular expression properly? Is it possible to do this within a <a href="http://www.scala-lang.org/node/107" rel="noreferrer">case class</a>?</p>