The Interledger Community 🌱

Cover image for RegEx to check correct payment pointer address

Posted on

RegEx to check correct payment pointer address

Does anyone have any golden rule for RegEx to check valid payment pointer? Would be great if it's future proof, as well cover many digital wallets pointer addresses and edge cases like using backend proxy to handle payment pointers.


Top comments (2)

sid profile image
Sid Vishnoi

Following works for some common cases at least. It's not very strict. Might be ok for HTML input validation.

Enter fullscreen mode Exit fullscreen mode

Came across this post looking for answers, but had to create my own. Saved for future reference πŸ˜„

radhyr profile image

Looking great. Really appreciate for this Sid! πŸ‘