? 预锟斤拷锟藉常锟斤拷
PCRE模式 ?
锟斤拷锟斤拷学院 www.cainiaoplay.com
PHP Manual
PCRE
锟斤拷锟斤拷
锟斤拷锟斤拷
Example #1 锟较凤拷模式示锟斤拷
/<\/\w+>/
|(\d{3})-\d+|Sm
/^(?i)php[34]/
{^\s+(\s+)?$}
Example #2 锟角凤拷模式示锟斤拷
/href='(.*)'
- 缺失锟斤拷锟斤拷锟街革拷锟斤拷
/\w+\s*\w+/J
- 未知模式锟斤拷锟轿凤拷"J"
1-\d3-\d3-\d4|
- 缺失锟斤拷始锟街革拷锟斤拷