We Recommend

Mastering Regular Expressions Mastering Regular Expressions
As this book shows, a command of regular expressions is an invaluable skill. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated. Regular expressions can save you time and aggravation. They can be used to craft elegant solutions to a wide range of problems. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You will wonder how you ever got by without them.


Ballyhoo


Posted By

krisdb on 02/15/08


Tagged


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

wbowers


Regex's


Published in: Regular Expression 


  1. Floating point number: [-+]?[0-9]*\.?[0-9]+
  2.  
  3. Email: \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
  4.  
  5. Zipcode: ^(?!0{5})(\d{5})(?!-?0{4})(-?\d{4})?$
  6.  
  7. 4-digit number: ^\d{4}$

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: krisdb on February 28, 2008

Posted By: krisdb on February 19, 2008

You need to login to post a comment.