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

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

WBOY
WBOYOriginal
2016-07-13 09:56:56888browse

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

What is /u /i /s in preg_match regular match in PHP Meaning
/u means matching according to unicode (utf-8) (mainly for multi-bytes such as Chinese characters)
/i means case-insensitive (if there is a in the expression, then A is also the matching object)
/s means treat the string as a single line to match

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/985270.htmlTechArticleThe meaning of /u, /i, /s in preg_match regular matching in PHP, phppreg_match The preg_match regular matching in PHP /u /i /s What does /u mean matching according to unicode (utf-8) (mainly for multi-byte ratio...
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