当匹配中的分组有嵌套时,是从外向里匹配的,其次在由左向右匹配 摘抄自http://social.msdn.microsoft.com/Forums/en-US/4305d5d4-1709-4c0f-86ae-3db78d08bced/url 在写一个采集网页源代码的时候遇到一个问题: 匹配URL,以 Read More
//$str = 'fff&sdf你是sdf好fdf啊b歌hello中world';$str = 'd你b_fff是好啊歌中潺潺 ';echo chineselength($str)." <br>";function chineselength($str){ $s=iconv("utf-8","gb Read More