作者IsMe1086 (大头)
看板PHP
标题Re: [请益] 关於regular expression
时间Sun Apr 10 13:26:38 2011
我想请问一下
http://tw2.php.net/manual/en/function.preg-match-all.php
里面的范例
<?php
preg_match_all("
|<[^>]+>(.*)</[^>]+>|U",
"<b>example: </b><div align=left>this is a test</div>",
$out, PREG_PATTERN_ORDER);
echo $out[0][0] . ", " . $out[0][1] . "\n";
echo $out[1][0] . ", " . $out[1][1] . "\n";
?>
中间的 pattern 有点看不太懂
能否帮我解释一下
另外想请问有没有推荐的regular expression教学网站
国外的也没关系
最好是有多点范例能够比较的 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 124.12.5.191
2F:推 UniFish:wiki就有罗 04/11 00:49
3F:→ IsMe1086:恩 恩後来有看到XD 04/11 01:15