I’m going to go ahead and post this because I keep referencing it personally, but with the caveat that it’s not been well tested or documented whatsoever. Right now it’s just a bunch of boolean returns on strings (generally user input) – I’m considering adding numeric- and date-centric validation but am not sure yet. If so, I’ll definitely put it on git and invite forks. For now, here’s some basic string tests:

Note that these have been collected over some time, and some of the patterns were probably found lying around the web.