This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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})$ |