PHP 正则表达式提取字符串中的序列号
串号2: 356041XSS10序列号: KWT2DH77Q2
购买时间: '; $pattern = '/序列号: ([a-zA-Z0-9]{10,12})/'; preg_match($pattern, $string, $matches); echo $matches[1]; ?>
购买时间: '; $pattern = '/序列号: ([a-zA-Z0-9]{10,12})/'; preg_match($pattern, $string, $matches); echo $matches[1]; ?>
原文地址: https://www.cveoy.top/t/topic/ofmg 著作权归作者所有。请勿转载和采集!