Crypto
#bitcoin
#btc
#crypto
#address
Bitcoin Address (Legacy)
Matches a legacy Bitcoin address — P2PKH (starting with 1) or P2SH (starting with 3), 25–34 Base58 characters.
✓ Crypto payment validation✓ Wallet address input✓ Transaction verification
✓ Valid Examples
- 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2
- 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
✗ Invalid Examples
- 0BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2
- 1BvBMSEYstWetq
- 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2_extra
Usage & Integration
Validate Bitcoin Address (Legacy) natively in your backend or frontend without copying regex strings.
Node / Edge
import { validate } from '@regexto/validators';
validate('bitcoin-address', '...');Python
from regexto_validators import validate
validate("bitcoin-address", "...")Go
import "github.com/regex-to/validators-go"
valid, err := validators.Validate("bitcoin-address", "...")PHP
use RegexTo\Validators\Validator;
Validator::validate('bitcoin-address', '...');Rust
use regexto_validators::validate;
let is_valid = validate("bitcoin-address", "...").unwrap();