Regular Expression PHP
Suppose I have a string like this "EUR 5,开发者_运维问答00 paid by Robert. EUR 500,00 Paid By Alberto Del Rio.". I want to extract the output like this using regular expression.
Output :
array( [0]=>EUR 5,00 [1]=>EUR 500,00 )
$results = array();
preg_match_all("/EUR [0-9,.]+/", $input_string, $results);
精彩评论