I am trying to pick up regex using nettuts. However I still haven't got very far and something need's fixing today.
I need a regex that does the following.
$html = '...'; // Lots of HTML
$regex = '{absolutely anything}color: #{6 digits - [0-9][a-f][A-F]};{absolutely anything}';
I will then use this to force users to have a certain color on their HTML elements.
Would anyone mind converting the $regex variable to actual regex?