-
Recent Posts
Recent Comments
Archives
Categories
Meta
Tag Archives: regex
Comparing E-mail Address Validating Regular Expressions
Validating an email address with a regular expression is something nearly every developer struggles with. So when I came across Comparing E-mail Address Validating Regular Expressions I wanted to make sure I left myself a note here so that I … Continue reading
When Regular Expressions Gets Greedy
I’ve been using a regular expression (PHP’s preg_match function) to parse email addresses. The addresses have a consistent pattern that look like: anamehere+XXXXXXXX@mail.example.com The XXXXXX section is a random set of characters: a-z, A-Z, 0-9 and -. The regular expression’s … Continue reading