当前位置:Gxlcms > PHP教程 > 再请问一个正则表达式

再请问一个正则表达式

时间:2021-07-01 10:21:17 帮助过:5人阅读

再请教一个正则表达式!
下面的字段,怎么才能截取到Steven Liu,而不要后面的stevenliu@reemake.com呢?这个问题是面向一类字段的!
Registrant [3451728]:

Steven Liu stevenliu@reemake.com

Beijing Chuangrui wenhua chuangmei youxian gongsi


------解决方案--------------------
preg_match_all('#Registrant \[3451728\]:\s+(\w+\s+\w+)#s',$s,$m);
print_r($m);

人气教程排行