<?php $re = '/\bdiscount\h[^\r\n€]*\K€\d{1,2}(?:,\d{1,2})?\b/'; $str = 'discount of €50,20 on these items € This item on sale now for €30,20'; if (preg_match($re, $str, $matches)) { echo($matches[0]); }
You have javascript disabled. You will not be able to edit any code.