Test Match Special has long held a space in the hearts of cricket fans and after fifty years on the radio has provided some of the best (English, eccentric) quotes on the radio not related to the Eurovision song contest. The Guardian's Over By Over online commentary hasn't quite made it to the stratospheric heights of commentary yet, but this one would make Brian Johnston smile....
49th over: England 200-2 (Vaughan 79, Pietersen 44) Pietersen clatters Gayle through the covers for three and then, later in the over, two more. It's as effortless as a loverat swaggering up to a girl...
All I did was try to write a small set of extension methods to validate whether a given string was valid according to the built-in schema string types and the editor in me comes out and starts nit picking. The W3C Schema docs are very good but sometimes annoyingly ambiguous without a degree in lateral thinking.
Problem #1 : Is "" valid?
Section 3.2.1 says
The ·value space· of string is the set of finite-length sequences of characters (as defined in [XML 1.0 (Second Edition)]) that ·match· the Char production from [XML 1.0 (Second Edition)].
So, is the empty string valid then? Taking...