Hello my friends!
Today, during parsing websites, I faced with such price string:
" 20,00
€
* "
Parsing such prices is not very comfortable...
$string = preg_replace('!\s+!', ' ', $string);
Previous string become:
" 20,00 € * "
And this is good string for parsing.
P.S. Many thanks for guys here:
https://stackoverflow.com/questions/2368539/php-replacing-multiple-spaces-with-a-single-space