PDA

View Full Version : custom profile fields reg ex


briansol
04-19-2006, 03:19 AM
I'm adding a zipcode field to my profiles, and I want to regex it to verify input

The regex is simple,


\b\d{5}-\d{4}\b|\b\d{5}\b


but i'm not sure how to enter it. To i plug it in just like that, or do i quote it, add in the preg_match()? I can't seem to find any documentation on this.

Thanks.

anyone?