isBitcoinAddress method

bool isBitcoinAddress()

Bitcoin Address

Consist of 26-35 (42 on bc1) alphanumeric characters. Starts with 1, 3, or bc1. It contains digits in the range of 0 to 9. The uppercase letter O and the uppercase letter I are not used to avoid visual ambiguity.

References: https://bitcoin.design/guide/glossary/address/ https://ihateregex.io/expr/bitcoin-address/ https://www.geeksforgeeks.org/regular-expression-to-validate-a-bitcoin-address/ https://en.bitcoin.it/wiki/Invoice_address

Implementation

bool isBitcoinAddress() => RegVal.hasMatch(
      this,
      RegexPattern.bitcoinAddress,
    );