Hi guys,
I really need some help creating or rather improving some reg exp stuff for my dissertation. I have just noticed I have not done this and don't have the time to do a lot of work on it. Any help would be massively appreciated.
I need to recognise upper and lower case variants of the same string.
Currently in php I have
Code:
$strKeywords = "color|COLOR|[^/]font|[^/]FONT|face|FACE|size|SIZE";
and then
Code:
if (ereg($strKeywords, $strLine)) {...
And need to know if there is any better way to implement that.
Also, in the same vein, can anyone give me a quick and dirty reg exp for a html hex colour?
Help much appreciated here,
Cheers.
__________________ben.
http://www.beseku.com