[PHP] Re: PHP eregi filtering problem

2003-12-08 Thread Sven
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

[PHP] PHP eregi filtering problem

2003-12-06 Thread PurpleOnyx
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

[PHP] Eregi filtering..

2003-07-07 Thread Miranda, Joel Louie M
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

RE: [PHP] Eregi filtering..

2003-07-07 Thread Ralph
, 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

RE: [PHP] Eregi filtering..

2003-07-07 Thread Miranda, Joel Louie M
-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

Re: [PHP] Eregi filtering..

2003-07-07 Thread Mike Migurski
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.