[PHP] need help on a ereg stmt. validating website adress

2002-05-18 Thread andy
Hi there, I would like to validate a website adress. Unfortunatelly my eregi stmt does not work: if (eregi(^([0-9a-z][0-9a-z-\.]+)\.([a-z]{2,3})), $website)){ // not a link I am getting the error msg: Warning: REG_ERANGE in extend.inc on line 94 does anybody know whats wroong with that?

Re: [PHP] need help on a ereg stmt. validating website adress

2002-05-18 Thread andy
andy [EMAIL PROTECTED] wrote: Hi there, I would like to validate a website adress. Unfortunatelly my eregi stmt does not work: if (eregi(^@([0-9a-z][0-9a-z-\.]+)\.([a-z]{2,3})), $website)){ // not a link I am getting the error msg: Warning: REG_ERANGE in extend.inc on line

Re: [PHP] need help on a ereg stmt. validating website adress

2002-05-18 Thread Miguel Cruz
On Sat, 18 May 2002, andy wrote: I would like to validate a website adress. Unfortunatelly my eregi stmt does not work: if (eregi(^([0-9a-z][0-9a-z-\.]+)\.([a-z]{2,3})), $website)){ // not a link I am getting the error msg: Warning: REG_ERANGE in extend.inc on line 94 does anybody