Hi guys,
As always I am here looking for advice regarding Regular Expressions.
I have a file with several HEX colour values (i.e. #FF1122). The best I can come up with is the following (but it doesn’t work):
$color_file = 'text #FFFFFF text';
$found = preg_match_all('/^#([a-fA-F0-9])$/i', $color_file, $matches);
echo $matches . "\
" . $found . "\
";
I just get an empty array. ![]()
Please help…