title: Remove all text except specific text and value Regex
body: <p>I have a problem with RegEX. I have output like this.</p>
  
  <pre><code>Number of rooms 
  2
  Price
  120000
  Square in meter
  60
  </code></pre>
  
  <p>I’m trying to achieve this: I want remove all text except “Number of rooms 2” My value “2”  changes. So far I have expression like this:</p>
  
  <pre><code>&lt;?php 
     $str = get_field('all'); 
     preg_match('/ Number of rooms \s*(\d+)/' , $str, $matches); 
     echo $matches[1]; 
  ?&gt;
  </code></pre>