I have a problem with regular expressions in php.
Got the following pattern: ^\s*(\d{8})\s+(.+?)\s+(\d+,\d{2})\s.?\s(.*)$
My search string is like: 12345678 This is a little Product Description with some special characters like ® 16,00 € maybe some text here
I use this php code:
$regex = '/^\s*(\d{8})\s+(.+?)\s+(\d+,\d{2})\s.?\s(.*)$/';
echo preg_match($regex, $input);
But there is no match!
The same regex pattern in java or c# works! Can you explain me what I'm doing wrong?
Here some online regex tester:
PHP: http://regexp-evaluator.de/evaluator/d721ca1ed32d76db960262ba7298cff3/#ergebnis