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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.