Regular Expressions 101

domain name with subdomains

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

~
^[\p{N}\p{L}\-+\.]{1,500}\.[\p{N}\p{L}][\p{L}-]*[\p{N}\p{L}]+$
~
ugm

Description

should match any domain with one or more subdomains

Submitted by Igor Tiulkanov