1. 根据购物车中的商品item id,准确判断客人的原装机型号。
2.匹配日期
3. 搜索单词 web
4. 从url 中取出域名
5. 你知道下面的程序输出什么?
(.*)]+>|u,
example: this is a test
,
$out, preg_pattern_order); // 注意preg_pattern_order和preg_set_order的区别
print $out[0][0]., .$out[0][1].\n;
print $out[1][0]., .$out[1][1].\n;
echo ;
print_r($out);
?>
6. 功能: 转义正则表达式字符,此函数很有用,可以供你写正则表达式时参考
7. 看人家如何用 preg_quote() 函数实现高亮显示
8. 用回调函数执行正则表达式的搜索和替换
9. 在 preg_replace() 中使用索引数组
10. 将 html 转换成文本