Skip to content

Instantly share code, notes, and snippets.

View cluck135's full-sized avatar
🧠
Always Learning

Casen Luck cluck135

🧠
Always Learning
  • UNH Full Stack Bootcamp
  • Kennebunk, ME
View GitHub Profile
@cluck135
cluck135 / Regex-Bitcoin-Addresses
Last active January 23, 2022 17:21
Regex Tutorial for Checking Bitcoin Addresses
# Regex Tutorial for Checking Bitcoin Addresses
A simple regex tutorial explaining how the characters in regex code determine what text entries will fit the Regex Code.
## Summary
Regex is great for checking that user inputs are correct, such as emails, usernames, and passwords. In this tutorial I will be teaching you how
Regex works for checking that Bitcoin addresses fit the criteria necessary to be a valid address. Although it won't check if the address is
in fact owned by someone. Just that it fits the criteria to be an Bitcoin address that someone could send BTC too.
```
^(?:[13]{1}[a-km-zA-HJ-NP-Z1-9]{26,33}|bc1[a-z0-9]{39,59})$