That's not regexps Rasmus! :)
I always see you referring us the the manual! sometimes you refer to a
function i never say in my life! ;)
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> http://php.net/is_numeric
>
> On Fri, 5 Oct 2001, Chris Ait
http://php.net/is_numeric
On Fri, 5 Oct 2001, Chris Aitken wrote:
>
> Ive been playing around with ereg for about half an hour and having no joy
> because I dont really understand the medhod behind it and how it all works.
> But what im trying to do is check to see if a 9 digit string is all num
try:
There is a great book on regular expressions by o'reily.
Evan
*** REPLY SEPARATOR ***
On 10/5/01 at 11:33 AM Chris Aitken wrote:
>Ive been playing around with ereg for about half an hour and having no
>joy
>because I dont really understand the medhod behind it and how
To: Chris Aitken; PHP General Mailing List
> Subject: RE: [PHP] ereg checking if its only numbers
>
>
> if(!preg_match("/^\d+$/",$string){
> echo "$string has something other than a number";
> }
>
> -Original Message-
> From: Chris Aitken
if(!preg_match("/^\d+$/",$string){
echo "$string has something other than a number";
}
-Original Message-
From: Chris Aitken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:34 PM
To: PHP General Mailing List
Subject: [PHP] ereg checking if its
Ive been playing around with ereg for about half an hour and having no joy
because I dont really understand the medhod behind it and how it all works.
But what im trying to do is check to see if a 9 digit string is all numbers
and nothing else
$string1 = "123456789"
$string2 = "123456abc"
h
6 matches
Mail list logo