This regex provides a basic syntax sanity check on an International Domain Name (IDN) which has been converted to ASCII (e.g. via the PHP function idn_to_ascii()
from the php-intl
package.
Does not guarantee the actual domain name is valid (let alone registered), but only a very basic syntax check.