title: Simple Java regex matcher not working
body: <p>Code :</p>
  
  <pre><code>import java.util.regex.*;
  
  public class eq {
      public static void main(String []args) {
          String str1 = "some=String&amp;Here&amp;modelId=324";
          Pattern rex = Pattern.compile(".*modelId=([0-9]+).*");
          Matcher m = rex.matcher(str1);
          System.out.println("id = " + m.group(1));
      }
  }
  </code></pre>
  
  <p>Error :</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: No match found
  </code></pre>
  
  <p>What am I doing wrong here ?</p>