--
============================================================
LEIAM SEMPRE AS REGRAS DA LISTA:
http://groups.google.com.br/group/listaphp/web/regras-da-lista-php
--
JQUERY MAGAZINE > http://www.jquerymagazine.com.br
--
PHP MAGAZINE > http://www.phpmagazine.com.br
--
LISTA NODE.JS > https://groups.google.com/group/lista-nodejs?hl=pt-br
--
AJAX-BRASIL > http://groups.google.com/group/ajax-brasil
--
PYTHON-GOOGLE > http://groups.google.com.br/group/python-google
--
DOTNET-BRASIL > http://groups.google.com.br/group/dotnet_br
============================================================
$replace = array("{","}","'","\"");
$str = 'ERROR: invalid input syntax for type date: "55%" qualquer
outra coisa aqui, bla bla bla';
$str = str_replace($replace,"",$str);
$a_procurar = '55%';
$str_limpa = strstr($str, $a_procurar);
$h = explode(" ",$str_limpa);
if( strlen($h[0]) == strlen($a_procurar) && $a_procurar == $h[0]) {
echo 'A procurar: '.$a_procurar.'<br>';
echo 'Str limpa: '.$h[0].'<br>';
}
--
Att.
Beto Lima
agradeço a todos.......