Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


general:regex:hostname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
general:regex:hostname [2016/12/21 15:38]
tplecko
general:regex:hostname [2019/10/31 09:05] (current)
Line 1: Line 1:
 +====== FQDN RegEx ======
 +Valid as per RFC 1123. Originally, RFC 952 specified that hostname segments could not start with a digit.
 +<​code>​^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])\.$</​code>​
  
general/regex/hostname.txt · Last modified: 2019/10/31 09:05 (external edit)