I try to get numbers only from a string by using preg_replace.
From this string:
\n
\t\n
\n
4 290 €\n
\n
\n
\n
\n
I've tried following patterns:
(.*|\n)(\d+[[:blank:]]\d+)(.+|\n)preg_replace('/(.*|\n)(\d+[[:blank:]]\d+)(.+|\n)/', '$2', $string);preg_replace('/(\d+ \d+)/', '$1', $string);
I want to ouput 4290. None of the code above worked for me.
thanks for tips