RegExp – validate US phone

A regular expression to validate US phone numbers. Works in all languages I’ve tested.

RegExp – validate email

Here’s a regexp that validates email addresses – this is the most robust pattern I’ve seen, should work against any valid email.

Not sure why, but it fails in AS – at some point I’ll go through the whole thing and modify it to work with ActionScript, but for now I use a much […]

JS/RegExp – js to css properties and back

camel-case to hyphenation, and back (e.g., “borderLeft” to “border-left” and vice-versa).