Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Crypto
#ethereum
#eth
#txhash
#transaction

Ethereum Transaction Hash

Matches an Ethereum transaction hash — 0x followed by exactly 64 hexadecimal characters.

Block explorer linksTransaction trackingPayment confirmation
/
/
Safe
Test String
2 matches
00'0' — literal character
xx'x' — literal character
[…]{64}Character class […]Matches any single character listed in this set — repeated exactly 64 times · {64} — exactly 64 times
a-fa-fa-f — range from 'a' to 'f'
A-FA-FA-F — range from 'A' to 'F'
0-90-90-9 — range from '0' to '9'
Pattern: 17 charsInput: 133 chars
100% client-side · private

Valid Examples

  • 0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060
  • 0xb5c8bd9430b6cc87a0e2fe110ece6bf527fa4f170a4bc8cd032f768fc5219838

Invalid Examples

  • 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
  • 5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060
  • 0xZZZZ

Usage & Integration

Validate Ethereum Transaction Hash natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('txhash-eth', '...');

Python

from regexto_validators import validate

validate("txhash-eth", "...")

Go

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

valid, err := validators.Validate("txhash-eth", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('txhash-eth', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("txhash-eth", "...").unwrap();