fork download
  1. <?php
  2.  
  3. test("€ 69.00 Repas complet hyper");
  4.  
  5. function test($tout)
  6. {
  7. if (preg_match_all('([£€$¥]([ 0-9]([ 0-9,])*)(\.\d{2})?|([0-9]([0-9,]))(\.\d{2})?([pcm]|bn| [mb]illion))', $tout, $matches)) {
  8. echo "it works\n";
  9. }
  10. }
  11.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
it works