[PJUG Javamail] Can anyone unpack this regexp for me

Timothy Selivanow timothy.selivanow at virtualxistenz.com
Fri Apr 25 21:12:52 UTC 2008


On Fri, 2008-04-25 at 14:00 -0700, Zack Radick wrote:

> A better solution is:
> 
> "^([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,4}$"

More elegant than mine now that I think about it...


--Tim
 ____________________________________________________________________ 
/ Some men love truth so much that they seem to be in continual fear \
| lest she should catch a cold on overexposure.                      |
\                 -- Samuel Butler                                   /
 -------------------------------------------------------------------- 
  \
   \   \
        \ /\
        ( )
      .( o ).




More information about the Javamail mailing list