Blog Archives

.Net Regular Expression for Common Fields

Regular Expressions are very handy but sometimes can be daunting depending on what you need to validate. I recently needed a regular expression and decided this would be a good ongoing blog to write. I have a few I will add here as time permits.

This one is good for amounts (whole dollar amount, dollar with decimal, dollar amount with both cents digits):

Zip Code:

US Phone Number (ddd)ddd-dddd:

A great tool (and a source for more regular expressions) can be found at: