Home >Backend Development >PHP Tutorial >The difference and meaning of /i,/g,/ig,/gi,/m in regular expressions, iggi_PHP tutorial

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

WBOY
WBOYOriginal
2016-07-12 09:03:582006browse

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(全文查找、忽略大小写)


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...
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