0
$text = '
<p>Author</p>
<p>Availability</p>
BeautyBeauty11055981
<p><a href="APPNDX_SortValuesArticle.html#salesrank">salesrank</a> </p>BooksBooks1000';
我需要得到所有的值都有字符串和數字(BeautyBeauty11055981,BooksBooks1000)。但是,結果錯誤錯誤使用preg_match得到的值有字符串和數字
if (preg_match ('/^[a-Z][0-9]$/', $text, $matches))
{
print_r($matches);
}
https://regex101.com/r/qcJ0Ff/1 – 2017-05-31 10:05:50