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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 09:56:56
Original
933 people have browsed it

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...
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template