title: Basic String.match not matching
body: <p>Java's <code>String.match</code> is not behaving the way I think it should and I'm not sure why.  Here is what I'm doing, I'm trying to parse the subdomain of a host and do something conditionally if the subdomain matches "dev".</p>
  
  <pre><code>String serverName = httpServletRequest.getServerName();
      List&lt;String&gt; partsList = new ArrayList&lt;&gt;(Arrays.asList(serverName.split("\\.")));
      if(partsList.size() == 3) {
          String subDomain = partsList.get(0);
          System.out.println(subDomain + " =&gt; " + subDomain.matches("dev"));
  </code></pre>
  
  <p>The thing is, this prints the following to the console:</p>
  
  <pre><code>dev01 =&gt; false
  </code></pre>
  
  <p>What is going on here?  It clearly does match.  Am I using the regex string incorrectly?</p>