php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/opt/php-7.0.1/ext/pcre/tests/ |
| files >> //proc/self/root/opt/php-7.0.1/ext/pcre/tests/preg_match_basic_002.phpt |
--TEST--
preg_match() single line match with multi-line input
--FILE--
<?php
/* Prototype : int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags [, int $offset ]]] )
* Description: Perform a regular expression match
* Source code: ext/pcre/php_pcre.c
*/
$string = "My\nName\nIs\nStrange";
preg_match("/M(.*)/", $string, $matches);
var_dump($matches);
?>
===Done===
--EXPECTF--
array(2) {
[0]=>
string(2) "My"
[1]=>
string(1) "y"
}
===Done===
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`