fork(1) download
  1. <?php
  2.  
  3. $haystack = "4 x 3XS - € 202,00, L, 2XS, 4 x XS - € 202,00, S";
  4. echo preg_replace('/\s*(?:-\s*)?€\s*\d+(?:,\d+)?/u','',$haystack);
Success #stdin #stdout 0.02s 23756KB
stdin
Standard input is empty
stdout
4 x 3XS, L, 2XS, 4 x XS, S