title: Why does regex doesn't match
body: <p>I have wrote the following code:</p>
  
  <pre><code>public static void main(String[] args) {
  
  
          // String to be scanned to find the pattern.
          String line = "'7858','1194','FSP,FRB,FWF,FBVS,FRRC','15'\n"
                  + "'7859','1194','FIRM','21'";
          String pattern = "^'*','*','*','*'$";
  
          // Create a Pattern object
          Pattern r = Pattern.compile(pattern);
  
          // Now create matcher object.
          Matcher m = r.matcher(line);
          if (m.find()) {
              System.out.println("Found value: " + m.group(0));
              System.out.println("Found value: " + m.group(1));               
          } else {
              System.out.println("NO MATCH");
          }
  
      }
  </code></pre>
  
  <p>it returns <code>NO MATCH</code> always.</p>
  
  <p>expected result - 2 rows</p>
  
  <p>What do I wrong ?</p>