Jump to content

Preg_match question


this.user

Recommended Posts

If there are any lowercase letters, you'll likely need to make the pattern case-insensitive (with the i modifier) or extend the character class to include lowercase letters: /^[0-9A-F]{6}$/Di or /^[0-9a-fA-F]{6}$/D respectively (note both use the D modifier, more info).

Link to comment
https://forums.phpfreaks.com/topic/179591-preg_match-question/#findComment-947761
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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