I have the following code:
explode(\"delimiter\", $snippet);
But I want that my delimiter is case-insensitive.
explode('delimiter',strtolower($snippet));
Never use expensive regular expressions when more CPU affordable functions are available.
Never use double-quotes unless you explicitly have a use for mixing variables inside of strings.