Regex Split Domain Name. Given a String Email address extract the domain name. RegExr is an online tool to learn build test Regular Expressions RegEx RegExp.
You can follow these to do that. Domain Name Regular Expression Pattern -A-Za-z0-9-163. Regular expression tester with syntax highlighting PHP PCRE JS Support contextual help cheat sheet reference and searchable community patterns.
This is useful for checking whether there is a third party domain involved in a page.
In this we harness the fact that symbol is separator for domain name and local-part. Domain Name Regular Expression Pattern -A-Za-z0-9-163. You can follow these to do that. In particular the regex engine may start having to scan the same text multiple times looking for different ways to match.