« Javapolis 2007 - The Techie Bits | Main | WSDL Revisited »

Awesome Regex Ninja

^(0*|-?0*[1-9]\d{0,8}|-?0*1\d{9}|-?0*20\d{8}|-?0*21[0-3]\d{7}|-?0*214[0-6]\d {6}|-?0*2147[0-3]\d{5}|-?0*21474[0-7]\d{4}|-?0*214748[0-2]\d{3}|-?0*2147483[ 0-5]\d{2}|-?0*21474836[0-3]\d|-?0*214748364[0-7]|-0*2147483648)$

TrackBack

TrackBack URL for this entry:
http://blogs.iona.com/cgi-bin/mt/mt-tb.cgi/550

Comments (1)

Pretty good. Although, nothing I've seen beats this awesome regex for RFC822 email addresses.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on December 20, 2007 11:06 AM.

The previous post in this blog was Javapolis 2007 - The Techie Bits.

The next post in this blog is WSDL Revisited.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.31