Home > Backend Development > PHP Tutorial > 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

高洛峰
Release: 2023-03-04 17:10:01
Original
2531 people have browsed it

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!


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template