title: php - regex - preg-match
body: <p>I have a problem with my regex.</p>
  
  <p>Here is the code and the output from an array:</p>
  
  <p>Code:</p>
  
  <pre><code>foreach ($sizeNameFin as $key =&gt; $value) {
      echo("&lt;br&gt;");
      echo($value);
      echo("&lt;br&gt;");
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>Vorhang mit Vorhangband 150 / 250
  Vorhang mit Vorhangband 150 / 250
  Vorhang mit Vorhangband 150 / 250
  Vorhang mit Vorhangband 150 / 250
  </code></pre>
  
  <p>So and now I need only this part: "150 / 250"</p>
  
  <p>I have tried:</p>
  
  <pre><code>foreach ($sizeNameFin as $key =&gt; $value) {
  
      print_r((preg_match('/[0-9]*[ ][\/][ ][0-9]*/',$value)));
      echo("&lt;br&gt;");
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>1
  1
  1
  1
  </code></pre>
  
  <p>So it only shows me the first figure, but not 150, and so on.</p>
  
  <p>I could undertand if I write <code>[0-9]</code> in my RegEx but there is a <code>*</code> behind the alphabet, so should he take the 150 or not?</p>