fork download
  1. <?php
  2.  
  3. $data = '
  4. <div class="information di-ib mt4">
  5. Movie (1 eps)<br>
  6. Aug 2016 - Aug 2016<br>
  7. 380,496 members
  8. </div></div>
  9. ';
  10.  
  11. if (preg_match("/\((?P<qtd>\d+) eps\)/", $data, $matches))
  12. {
  13. echo "O filme possui ", $matches["qtd"], " episódio(s)", PHP_EOL;
  14. }
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
O filme possui 1 episódio(s)