Return to Snippet

Revision: 34608
at October 26, 2010 03:39 by newsok


Initial Code
$string = "#555555";
if (preg_match('/^#(?:(?:[a-fd]{3}){1,2})$/i', $string)) {
echo "example 6 successful.";
}

Initial URL


Initial Description


Initial Title
Matching hexadecimal color values

Initial Tags


Initial Language
PHP