skip to main | skip to sidebar

Rob Halff

Tuesday, September 29, 2009

Regular Expression, validate domain

Simple regular expression to validate a domain loosly:

^([A-z0-9][A-z0-9_-]*\.)+([A-z0-9][A-z0-9_-])+$
Posted by rhalff at 11:01 AM

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (3)
    • ►  November (1)
      • Trying out Blogilo
    • ►  May (1)
      • Trying Flock
    • ►  February (1)
      • Drag & Drop From Firefox to Flash
  • ▼  2009 (7)
    • ►  November (1)
      • Excluding files with tar.
    • ►  October (1)
      • Got access to ssh but not to any other ports on th...
    • ▼  September (2)
      • Regular Expression, validate domain
      • After you've editted a /etc/hosts file on the mac,...
    • ►  May (1)
      • Creating thumbnails of webpages
    • ►  April (1)
      • Geonames The GeoNames geographical database covers...
    • ►  January (1)
      • mac-osx-terminal-page-up-down-home-end-of-line
  • ►  2008 (10)
    • ►  November (5)
      • Mysql Replication Quickie
      • Postfix Configuration - What did I change ?
      • Simple Bike Computer
      • Here is a link to some intresting tutorials about ...
      • How to detect the motherboard type with linux
    • ►  October (2)
      • Convert vmware to virtualbox
      • Removing duplicates can be as easy as adding an un...
    • ►  August (2)
      • S9500 Some usefull tips.
      • RAW Files & Linux
    • ►  February (1)
      • Installing Flex on Linux
  • ►  2007 (1)
    • ►  May (1)
      • Trying out blogspot

About Me

rhalff
View my complete profile