I'm using curl to extract data from a website and i want to get content of a specific <span>
. it worked perfectly with
$pattern4 = '/<span class=\"_c1 ei_card_subtitle _c1\">(.*?)<\/span>/i';
$cc = preg_match_all($pattern4, $ccpage, $matches);
print_r($matches[1][0]);`
This return : some text - digits
, in the original website they're separated by <br />
i already have a pattern to only match the digits
$pattern5 = "\s\d+\s(?=\-)"
but i don't know how to combine them to get only the digits from that specific
<span class="_c1 ei_card_subtitle _c1">
713286XXX971 - 12021980 – Timo Apr 13 '18 at 17:49