Regular Expressions 101

Simple domain.tld tester

Open Workspace
  • JavaScript
  • Match
2

Regular Expression

/
^[a-zA-Z0-9-\_]+\.[a-zA-Z]+?$
/
i

Description

For testing domain with TLD

regExp.test("google.com") => true regExp.test("mad.engineering") => true

Submitted by Sergio de la Garza