| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
Reg Exp Help
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:
and then Code:
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 |
|
|
|
|
|
#2 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,237
|
Could you not just use eregi as it's not case sensitive? http://uk.php.net/manual/en/function.eregi.php That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#3 (permalink) | |
|
Senior Member
|
Quote:
I love you... ben.
http://www.beseku.com |
|
|
![]() |