开发者

Regular Expression PHP

开发者 https://www.devze.com 2023-04-04 09:13 出处:网络
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.

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消