Expression matching for form widgets

2004-09-09 Thread Derek Hohls
I am looking for some guidance for developing patterns to help validate some form fields; for example I need to check that an entry is in the form AA00 where AA are uppercase letters and 00 are two numbers. If someone can help with this and, more generally, point me to a good resource for

Re: Expression matching for form widgets

2004-09-09 Thread Scott Yeadon
From memory, Cocoon supports most regular expression syntax. There are heaps of reference sites, here's just one that's a reasonable introduction: http://www.regular-expressions.info/reference.html Your match could be done a number of ways, [A-Z]{2}[0-9]{2} or if Cocoon spits at this, try