I'm doing a simple BBCODE style input box with
$string = preg_replace("/\[i\](.*?)\[\/i\]/", '<i>$1</i>', $string);
But I have a quick query, how can I get it to recognise capitals, at the moment if someone puts it doesn't work! I'd like to not have to copy each preg_replace code with capitals etc.
Thanks