Click to See Complete Forum and Search --> : Stupid Reg Ex Problem


tgrk35
07-31-2006, 11:17 AM
Ok, so here's what I got:

$contact_grad = sanitize($_POST['contact_grad'],'[0-9\']');

I need it to accept 0-9 or ' characters. For some reason a ' will kill it.

Did I not put it in there right?

Thanks,
Will

aaronbdavis
07-31-2006, 11:24 AM
looks like it should be right. It may need a comma. Try replacing the 0-9 with \d, which means the same thing.