The Interledger Community 🌱

Discussion on: RegEx to check correct payment pointer address

Collapse
 
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.

/^\$(?:(?:\w+\.)+\w{2,})+(?:(?:\w+\/)+\w+)*$/
Enter fullscreen mode Exit fullscreen mode

regex101.com/r/vCrwOa/1

Came across this post looking for answers, but had to create my own. Saved for future reference 😄

Collapse
 
radhyr profile image
Radhy

Looking great. Really appreciate for this Sid! 👍