5

What is the best, most correct way of regex'ing the address and payment ID for Monero?

Asdax
  • 551
  • 4
  • 12

1 Answers1

9

A Monero address:

4[0-9AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{93}

A payment ID:

([0-9a-fA-F]{16}|[0-9a-fA-F]{64})
Jonathan Cross
  • 643
  • 5
  • 19
Asdax
  • 551
  • 4
  • 12