CosmosRP Posted February 23, 2011 Share Posted February 23, 2011 preg_match('/\<color\i*=\042[0-9A-Za-z]+?\042\s*>/', $M); Currently, this only matches <color="">, but I want it to be case insensitve and also match <COLOR. Is that possible? Link to comment https://forums.phpfreaks.com/topic/228566-how-do-i-make-this-case-insensitive/ Share on other sites More sharing options...
sasa Posted February 23, 2011 Share Posted February 23, 2011 change to preg_match('/\<color\i*=\042[0-9A-Za-z]+?\042\s*>/i', $M); add modifer i Link to comment https://forums.phpfreaks.com/topic/228566-how-do-i-make-this-case-insensitive/#findComment-1178520 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.