php regular problem
PHPz
PHPz 2017-05-16 12:02:42
0
2
646

$dsnStr='mysql://root:root@127.0.0.1:3306/test';
preg_match('/^(.?)://(.?): (.?)@(.?):([0-9]{1, 6})/(.*?)$/',trim($dsnStr),$matches);
I would like to ask why this cannot be matched. $natches is an empty array. How can I change it to match it?

PHPz
PHPz

学习是最好的投资!

reply all(2)
滿天的星座
preg_match('/^(.*?):\/\/(.*?):(.*?)@(.*?):([0-9]{1,6})(.*?)$/',trim($dsnStr),$matches);


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template