The difference and meaning of /i,/g,/ig,/gi,/m in regular expressions, iggi_PHP tutorial

WBOY
Release: 2016-07-12 09:03:58
Original
1973 people have browsed it

The difference and meaning of /i,/g,/ig,/gi,/m in regular expressions, iggi

/i,/g,/ in regular expressions The difference and meaning of ig,/gi,/m

/i (忽略大小写)
/g (全文查找出现的所有匹配字符)
/m (多行查找)
/gi(全文查找、忽略大小写)
/ig(全文查找、忽略大小写)
Copy after login


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1077539.htmlTechArticleThe difference and meaning of /i,/g,/ig,/gi,/m in regular expressions, iggi The difference and meaning of /i,/g,/ig,/gi,/m in regular expressions/i (ignore case)/g (search all matching characters that appear in the full text)/m...
Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!