Archive for category Regex

Tools – Roy Osherove – Regulazy!

Just found an awesome tool allowing Regex noob’s such as myself, to build up Regex patterns, using only the sample data that you wish to match- go download Regulazy here!

Tools – Roy Osherove – Team Leadership, Agile Development & .NET – Speaking, Consulting, Training and Tools.

No Comments

Some handy Regular Expressions

Some handy regex patterns for grabbing different bits of gubbins and stuff;

EmailAddress:
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$

Postcode:
^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][ABDEFGHJLNPQRSTUWXYZabdefghjlnpqrstuwxyz]{2}$

HTML Tags:
<(.|\n)*?>

HTML Tags except for the BR tag:
(\<)(?!br(\s|\/|\>))(.*?\>)

No Comments