親測可用,適應全部狀況:cli
str.replace(/(1[3|4|5|7|8]\d{9})(((\D{1}|$)[\s\S]*)+)/g, '<a onclick="alert($1)">$1</a>$2');