scarhand Posted December 4, 2007 Share Posted December 4, 2007 for some reason this isnt working <?php if (!eregi("^[#]*(\.[a-z0-9]{6})$", $maintxtcolor)) { $errormsg = "An invalid main text color was entered"; } Link to comment https://forums.phpfreaks.com/topic/80116-solved-eregi-for-hex-color-codes/ Share on other sites More sharing options...
scarhand Posted December 4, 2007 Author Share Posted December 4, 2007 nevermind i figured it out <?php if (!eregi("^#*([a-fA-F0-9]{6})$", $maintxtcolor)) Link to comment https://forums.phpfreaks.com/topic/80116-solved-eregi-for-hex-color-codes/#findComment-405989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.