I am trying to come up with a regular expression to match Bitcoin addresses according to these specs:
A Bitcoin address, or simply address, is an iden
I am not into complicated solutions and this regex served the purpose for the most simplest validation, when you just don't want to receive complete nonsense.
\w{25,}
^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$
bitcoin address is
O
, uppercase letter I
, lowercase letter l
, and the number 0
are never used to prevent visual ambiguity.