Trevor,
On 12/1/2003 at 07:11, you wrote:
THL> I was just reading Ben's Blog this morning and seen his regex's
THL> for postal and zip codes. Now I've used regex's in perl but how
THL> do you actually use them in CF? Code examples anyone?
I use the following (snippet from a UDF):
// Validate zip code ("12345" or "12345-6789")
if(not (refindnocase("^[0-9]{5}$|^[0-9]{5}\-[0-9]{4}$",string))){isvalid=false;}
~ Ubqtous ~
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]