I am trying to find a regex using nettuts . However, I am still not very far away, and today I need to fix something.
I need a regex that does the following.
$html = '...'; // Lots of HTML $regex = '{absolutely anything}color: #{6 digits - [0-9][af][AF]};{absolutely anything}';
Then I use this to make users have a specific color in their HTML elements.
Could anyone convert the $ regex variable to the current regex?
source share