Purpleonyx schrieb:
Greetings all, I ran into a problem today and was
hoping someone could provide an answer.
I am fetching a web page, and attempting to parse
certain variables from it. I've done this plenty of
times in the past with no problem. The only
difference this time is the file that I
Greetings all, I ran into a problem today and was
hoping someone could provide an answer.
I am fetching a web page, and attempting to parse
certain variables from it. I've done this plenty of
times in the past with no problem. The only
difference this time is the file that I am parsing is
much
elseif (eregi(a-ZA-9, $v_tel_filter)) {
echo '$v_tel_filter' Telephone Number Contains words;
} else {
im looking how to verify numbers alone and dash - can that be possible? I
have tried using a-ZA-9 but did not work.
any ideas?
thanks,
louie
--
Thank you,
Louie
--
PHP General
, July 07, 2003 5:10 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Eregi filtering..
elseif (eregi(a-ZA-9, $v_tel_filter)) {
echo '$v_tel_filter' Telephone Number Contains words;
} else {
im looking how to verify numbers alone and dash - can that be
possible? I
have tried using a-ZA-9 but did
-Original Message-
From: Ralph [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 8:20 AM
To: Miranda, Joel Louie M; [EMAIL PROTECTED]
Subject: RE: [PHP] Eregi filtering..
Here is one of doing this:
if(strrpos($v_tel_filter,' ') 0 || strspn($v_tel_filter,
0123456789-) != strlen
elseif (eregi(a-ZA-9, $v_tel_filter)) {
echo '$v_tel_filter' Telephone Number Contains words;
} else {
im looking how to verify numbers alone and dash - can that be possible? I
have tried using a-ZA-9 but did not work.
/^[\-\d]+$/ should match a string of just digits and dashes.
6 matches
Mail list logo