我有这个字符串,中间有一年.我想提取年份和之前和之后的所有内容.
我正在使用以下单个正则表达式:
'/\d{4}\b/'
'/(.*?)\d{4}\b/';
'/d{4}\/(.*?)\b/'
php regex
php ×1
regex ×1