Skip to content

Instantly share code, notes, and snippets.

View MBrassey's full-sized avatar

Matt MBrassey

View GitHub Profile
@MBrassey
MBrassey / Match_Addresses.md
Last active May 29, 2024 08:51
Match Crypto Wallet Addresses (REGEX)

Match Crypto Wallet Addresses using Regular Expressions

The following regular expressions are crafted to match some commonly used cryptocurrency wallet address types. This document details the Regex components and pattern tests to match Ethereum, Bitcoin, Dash and Monero addresses.

🌀 Click the images below to view the tested patterns.

Ethereum (ETH)

/^0x[a-fA-F0-9]{40}$/g