Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 正则表达式_Php_Preg Match - Fatal编程技术网

Php 正则表达式

Php 正则表达式,php,preg-match,Php,Preg Match,假设我有这样一个字符串“罗伯特支付5,00欧元,阿尔贝托·德尔里奥支付50,00欧元。”。我想使用正则表达式提取这样的输出 输出: 排列( [0]=>5,00欧元 [1] =>500,00欧元 )您有没有试过的常规表达式? $results = array(); preg_match_all("/EUR [0-9,.]+/", $input_string, $results);

假设我有这样一个字符串“罗伯特支付5,00欧元,阿尔贝托·德尔里奥支付50,00欧元。”。我想使用正则表达式提取这样的输出

输出:

排列( [0]=>5,00欧元 [1] =>500,00欧元
)

您有没有试过的常规表达式?
$results = array();
preg_match_all("/EUR [0-9,.]+/", $input_string, $results);