k4m4 / ripple-regex

Regular expression for matching Ripple (XRP) addresses.
MIT License
7 stars 2 forks source link

regex is wrong #1

Closed smoes closed 5 years ago

smoes commented 5 years ago

I think a better regex would be

"r[0-9a-zA-Z]{24,34}"

From the official doc:

https://developers.ripple.com/accounts.html

If you want to be very precise, exclude "0", "O", "l" and "I"

k4m4 commented 5 years ago

Thank you for your suggestion!