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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.