now running on php 5+6 also

fixed preg_replace calls that where using the 'e' modifier. omg, omg!!