Please help with the regular schedule.

Objective: to make sure that the case is not case sensitive.

I heard about the i modifier, but for some reason it does not work. Here are the regulars:

  $regular = '#[регулярка]#iuU'; 

To be honest, about the modifier i and u I just learned from Google. Therefore, if someone explains to me exactly how to use it (I heard about some problems with the encoding), I will be very grateful.

The regular itself works, it is absolutely accurate.

When I try to use iu , nothing happens. Those. Regular work, but the register is still taken into account.

  • Modifier i works great: [ regex101.com/r/eH1eI3.37] [1]: regex101.com/r/eH1eI3 - Opalosolo
  • The question was how to make it work for ME. So, as you showed, I also did. PS Your answer to the answer was reset when I accidentally updated the page. Could you write again? - Silence
  • @ Silence - could you give an example code on ideone.com? Here are my sketches: [ideone.com/y2wTrP[[1] [1]: ideone.com/y2wTrP - Opalosolo
  • Here is the code, and it works in this service: ideone.com/xjdpT6 And on my local computer - no. What do you think is the matter? - Silence
  • one
    @ Silence, in what encoding do you have the file? Try setting mb_regex_encoding ('UTF-8'); What version of PHP? Is it built with PCRE support? - VenZell

0