Jump to content
The mkiv Supra Owners Club

Need some help with a Regex query


MrRalphMan

Recommended Posts

Did you try my way? I mean, it's a bit shorter, and the "i" flag at the end indicates that the alphabetical characters are case-insensitive.

Your way would work just as well anyway.

 

If it could only be hpd or HPD (not hPd, HPd, HdP etc) then you could do:

 

/^(hpd|HPD)[0-9]{12}$/

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.