我的字符串中列出了一年
$s = "Acquired by the University in 1988";
在实践中,这可能是这个单行字符串中的任何位置.如何使用regexr提取它?我尝试过\ d但是没有用,它只是出现了一个错误.
贾森
我在LAMP 5.2中使用了preg_match
php regex
php ×1
regex ×1