preg_match_all -- correct regular expression for string
Posted: Thu Mar 04, 2010 11:12 am
Please, give me the correct preg_match_all code for the following string:
where I need only the number 6, nothing else. Remember that it could also be a number higher than 6, like 1598.
(I'm actually using the following code that returns the string above:
)
Thank you very much.
Code: Select all
totals"> Totals: 22 11/6 Daily Average(I'm actually using the following code that returns the string above:
Code: Select all
preg_match_all('/total(.+)verage/si', $conteudo, $conteudo);Thank you very much.