title: Match regex with php
body: <p>I get 2 results with <code>preg_match</code> and I don't understand why. This is my code:</p>
  
  <pre><code>$pattern = "\[precom\]([A-Za-z]|\(|\)|[0-9]|\s|\*)*\[\/precom\]";
  $data = "[precom](homme) Cher monsieur $name[/precom] ";
  preg_match("/" . $pattern . "/", $data, $m);
  print_r($m);
  </code></pre>
  
  <p>This is the result:</p>
  
  <pre><code>Array ( [0] =&gt; [precom](homme) Cher monsieur *name[/precom] [1] =&gt; e ) 
  </code></pre>
  
  <p>Could anyone help me to find the problem please?</p>