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 8, 2024 05:52
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

### 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: