Can you simplify and change "\s" to "[^0-9]" (any non-digit)? This would accept all these as zip codes as "123456":What exactly do you want to consider whitespace? That's your key question. [ April 14, 2005: Message edited by: David Harkness ]
Joined: Oct 18, 2004
Thanks David for rescuing me again...
Well the motive is to have a set of regular patterns for thing like Phone Numbers, Mobile numbers, email, Zipcode and even a verification of a name which are all present in the document.
When viewed as html, the words are crealy seperated by space. But in reality these are sometimes characters with ASCII value greater than 127. So if I use \s in these cases the RegEx will fail.