Home  >  Article  >  Backend Development  >  The meaning of /u, /i, /s in preg_match regular matching in PHP

The meaning of /u, /i, /s in preg_match regular matching in PHP

高洛峰
高洛峰Original
2017-01-09 10:01:562478browse

What does /u /i /s mean by preg_match in PHP?
/u means matching according to unicode (utf-8) (mainly for multi-bytes such as Chinese characters)
/i means no size distinction Write (if there is a in the expression, then A is also the matching object)
/s means treating the string as a single line to match

More /u, /i, in preg_match regular matching in PHP For articles related to the meaning of /s, please pay attention to the PHP Chinese website!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn