Avoid using regexps when strpos() is enough

That's one hell of a crazy project you have here, mate. Looks cool ! Too bad it's lacking tests (and docs).

You probably could swap some components, though (*koff* Sprockets-PHP *kof*)

Good luck with it; though !