Unnamed
public text v1 · immutable<?php
$string = "StringHere1 4,370,000,000StringHere2";
if (preg_match('/StringHere1 (.+?)StringHere2/is', $string, $out))
echo "IT WORKED!";
else
echo "FAILED!";
// Expected result: 4,370,000,000
?><?php
$string = "StringHere1 4,370,000,000StringHere2";
if (preg_match('/StringHere1 (.+?)StringHere2/is', $string, $out))
echo "IT WORKED!";
else
echo "FAILED!";
// Expected result: 4,370,000,000
?>