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

Posted by lkrubner on 11/11/01 11:30

>What is this function supposed to do? Exactly what pattern(s) are you
>trying to match or test for? It's identifier suggests that it should
>look for some aspect of a floating-point number (though it's not clear
>what), yet your pattern allows integers as well.

Thank you for help. I apologize for asking such a poor question. I've a
simple one to follow up with: how do you say "not" in regex? Is it "^"?

I've decided that all I want to do is make sure there are no letters in
the input. Is it right to say this:

$pattern "[^A-Za-z]";
$match = preg_match ($pattern, $subject);

This comes back true if there are no letters in $subject, yes?

 

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

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