php 5.5 seems no more compatible with (?i) regex syntax, so I have replaced it, and I have also added /u modifier for utf8