Reputation:
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 the following output:
array(
[0]=>EUR 5,00
[1]=>EUR 500,00
)
Upvotes: 0
Views: 67
Reputation: 527173
$results = array();
preg_match_all("/EUR [0-9,.]+/", $input_string, $results);
Upvotes: 7