PHP Function to Check if a String is a Valid Domain Name via Regex April 10, 2021 php 1 Comment Given a string e.g. “domain.com” we want to find out if it is a valid domain string name. We can do this in PHP via Regx aka Regular Expression. … [Continue Reading...]