Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mbrassey on github.
* I am luc1d (https://keybase.io/luc1d) on keybase.
* I have a public key ASAmcsoTeLQYTUpM-i5Ke2Irk3fOkiDgUWFZuZHik6Tb7go
To claim this, I am signing this object:
@MBrassey
MBrassey / Match_Addresses.md
Last active September 29, 2024 20:11
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