You are here: idiot question about preg_match and regex « PHP Programming Language « IT news, forums, messages
idiot question about preg_match and regex

Posted by lkrubner on 11/05/19 11:30

I apologize for my igorance of Regex. I can't get this function to
work. It gives the following error message.



function checkForFloatingPoint($input=false) {
$pattern = "[-+]?([0-9]*\.[0-9]+|[0-9]+)";
$match = preg_match (pattern, subject);
echo "The match is: $match ";
return $match;
}




Warning: preg_match(): Delimiter must not be alphanumeric or backslash
in /home/hoovera/public_html/lawrenceScripts/lk_lib.php on line 642
The match is:

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация