Re: UK Validate Diff (Again)
| From: | Stefan Neufeind | Date: | Fri, 27 Feb 2004 08:48:37 +0000 |
| Subject: | Re: UK Validate Diff (Again) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25904@lists.php.net to get a copy of this message | ||
On 25 Feb 2004 at 22:02, David Grant wrote:
> Here's another diff for Validate_UK, this time for postcode. I
> noticed in Michael Dransfield's comments that he intended to add in
> "strong" support for check against a list of postcodes.
>
> I'm not sure if this list is supposed to be exhaustive, but I've
> modified the code to change the regex if the strong parameter is set
> to true. This regex takes into account postcodes that do not occur in
> the Royal Mail list, by excluding unused letters in certain locations.
Could you please give some further background on this? Is there also
information online somewhere? Where the "special cases" you're
talking about not yet handled by the current function or are you
intending to make it even "stronger"?
Have you got some official postcodes for the testcases (true and
false one's) please?
> There's also a minor CS change -- I "tainted" the source with a couple
> of tabs in the ni function, so these have now been replaced with
> spaces.
No problem. Didn't see that myself :-)) Was a copy-paste-prob.
Regards,
Stefan