The difference and meaning of PHP regular expression parameter /i, /g, /ig, /gi, /m

time:17-03-20 forum:PHP tools and code
  http://blog.aizhet.com/PHP/10221.html

/i. />/ig (full text lookup, overlooked case) the character in the

i mode will match the case of the case of the case of

m as a multiline

s, and the string is considered as a single line. In the reverse substitution, we make a normal replacement, use it as a PHP code, and replace the search string with the result.

A coercion only from the beginning of the target string to match the $character in the

D pattern only to match the end of the target string, the last

U matching the nearest string

u mode string is considered as

prev:The function of the size of the PHP stat... next:Ji'nan's full-time social workers only h...
post comment
Notice



approved   The old man takes care of the paraly...   The girl wants to donate the liver t...   The most beautiful adoptive mother i...   What's the use and use of the social...   A glimpse of the Intangible Cultural...
rand   Simple application of PHP function p...   Use the PHP function preg_match_all ...   The method for PHP to output array e...   Basic concept of character coding   PHP import and export of Excel file ...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com