UK Postcode RegEx
Found this and thought it may be of use for UK Postcodes.
^([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) {0,1}[0-9][A-Za-z]{2})$
UK Postcode RegEx
Unfortunately, I yelped too soon. Sadly, a really kick ass regex that may work in most all other environments will not always work within screen-scraper.
The reasons boil down to how the regular expression field in the edit token window was originally implemented, to how the string being parsed gets interpolated on its way from Swing to BeanShell to the JVM, but the short end of it all is that you just need to experiment and take good notes about what works and what doesn't. This is especially sad for any seasoned regex'rs out there as you may find yourself needing to learn a local dialect of regex.
Yours in endless experimentation...
:cry: :roll: :? :shock: :( :P 8)
UK Postcode RegEx
Wow, you read my mind! I'll give it a try.