title: Regex matcher - No match found
body: <p>I am trying to use Regex to extract the values from a string and use them for the further processing.
  The string I have is : </p>
  
  <pre><code>String tring =Format_FRMT: &lt;&lt;&lt;$gen&gt;&gt;&gt;(((valu e)))    &lt;&lt;&lt;$gen&gt;&gt;&gt;(((value 13231)))
  &lt;&lt;&lt;$gen&gt;&gt;&gt;(((value 13231)))
  </code></pre>
  
  <p>Regex pattern I have made is : </p>
  
  <pre><code>Pattern p = Pattern.compile("\\&lt;{3}\\$([\\w ]+)\\&gt;{3}\\s?\\({3}([\\w ]+)\\){3}");
  </code></pre>
  
  <p>When I am running the whole program </p>
  
  <pre><code>Matcher m = p.matcher(tring);
  
     String[] try1 = new String[m.groupCount()];
  
      for(int i = 1 ; i&lt;= m.groupCount();i++)
      {
          try1[i] = m.group(i);
          //System.out.println("group - i" +try1[i]+"\n");
      }
  </code></pre>
  
  <p>I am getting </p>
  
  <blockquote>
    <p>No match found</p>
  </blockquote>
  
  <p>Can anybody help me with this? where exactly this is going wrong?
  My first aim is just to see whether I am able to get the values in the corresponding groups or not. and If that is working fine then I would like to use them for further processing.</p>
  
  <p>Thanks</p>