Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Crypto
#ens
#ethereum
#domain
#web3

ENS Name (Ethereum Name Service)

Matches an Ethereum Name Service domain — alphanumeric label(s) ending with .eth.

✓ Web3 profile lookup✓ Wallet address resolution✓ ENS search
/
/
Safe
Test String
3 matches
[…]Character class […]— Matches any single character listed in this set
a-za-z— a-z — range from 'a' to 'z'
0-90-9— 0-9 — range from '0' to '9'
[…]{1,61}Character class […]— Matches any single character listed in this set — repeated between 1 and 61 times · {1,61} — between 1 and 61 times
a-za-z— a-z — range from 'a' to 'z'
0-90-9— 0-9 — range from '0' to '9'
\-\-— \- — escaped character
[…]Character class […]— Matches any single character listed in this set
a-za-z— a-z — range from 'a' to 'z'
0-90-9— 0-9 — range from '0' to '9'
\.\.— \. — escaped character '.'
ee— 'e' — literal character
tt— 't' — literal character
hh— 'h' — literal character
Pattern: 37 charsInput: 35 chars
100% client-side · private

✓ Valid Examples

  • vitalik.eth
  • my-wallet.eth
  • regex.eth

✗ Invalid Examples

  • -invalid.eth
  • a.eth
  • vitalik.com
  • vitalik.ETH2

Usage & Integration

Validate ENS Name (Ethereum Name Service) natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('ens-name', '...');

Python

from regexto_validators import validate

validate("ens-name", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("ens-name", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('ens-name', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("ens-name", "...").unwrap();