title: Different patterns but the result is the same
body: <p>I want to get the input values in the string. I use two different patterns for this. But the result is the same. What is the reason of this?</p>
  <pre><code>$string = 'hello world is .. &lt;input type=&quot;text&quot; id=&quot;level&quot; value=&quot;5&quot;&gt;  &lt;input type=&quot;text&quot; id=&quot;option&quot; value=&quot;24&quot;&gt; .. tyhis is example text.';
  
  $pattern = '/&lt;input(?:.*?)id=\&quot;option\&quot;(?:.*)value=\&quot;([^&quot;]+).*&gt;/i';
  $pattern2 = '/&lt;input(?:.*?)id=\&quot;level\&quot;(?:.*)value=\&quot;([^&quot;]+).*&gt;/i';
  
  preg_match($pattern, $string, $matches);
  preg_match($pattern2, $string, $matches2);
  echo $matches[1];
  echo &quot;&lt;br&gt;&quot;;
  echo $matches2[1];
  </code></pre>
  <p>Result:</p>
  <blockquote>
  <p>24</p>
  <p>24</p>
  </blockquote>
  <p>What is the reason of this?</p>