RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details FQDN for DNS configuration tool
Expression
^(?=^.{1,254}$)(^(?:(?!\.|-)([a-z0-9\-\*]{1,63}|([a-z0-9\-]{1,62}[a-z0-9]))\.)+(?:[a-z]{2,})$)$
Description
This regex matches FQDNs plus domains starting with an or containing asterisk. This is usefull for DNS configuration tools where you might have domains like *.domain.de or 12.152.80.in-addr.arpa.
Matches
12.152.80.in-addr.arpa | *.domain.de | test.de
Non-Matches
test | test. | -.de
Author Rating: Not yet rated. Andreas Burger
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2014, RegexAdvice.com | ASP.NET Tutorials