I am working on a registration script for my client product sales website.
I am currently working on a credential entry area, and I want to make sure that the reference identifier is in the correct payment method settings.
The link ID will look something like this: XXXXX-XXXXX-XXXXX
I am trying to use this RegEx pattern to match it: /(\w+){5}-(\w+){5}-(\w+){5}/
This matches it perfectly, but also matches XXXXX-XXXXX-XXXXXXXXXX
Or at least he finds a match there. I want it to fit the whole line. I'm not too familiar with RegEx
How can i do this?
source share