https://chaoshi.detail.tmall.com/item.htm?ak=33889664&ali_trackid=2:mm_1110511_271620035_1144723030:1725264752700_558894665_0&bxsign=tbkApfsOEzHXBUlhq-vA2O-63GFAq8iDkYsU_YIETrDem_IWwQQ9_T90738M-YJel4X1ZEc7xmGMdIjU8kFc1w_MXqpq9UqvADg4xyDKgB7SuG8noyxZegJ8qFXhckJV2e2uYeXifVqwUwVK2ZDaxknqUYuCHDvYPKodFI8QE1QYzPMb9t4V9uB0bUB4GWz0ArY&fromUld=1&id=784677126264&pvid=33889664&scm=20140767.59990_33_51_75_99_419_1725264751543.1%7Citem%7C784677126264.0&spm=a2e0b.27129982.2in1_main.d1654498297981&union_lens=lensId:OPT@1725263205@2132b868_12cd_191b1b35327_bb73@034STZPLukZLgusYqxS9eulg@eyJmbG9vcklkIjo4NTAwN30ie;recoveryid:201_33.103.84.78_9071734_1725264751034;prepvid:201_33.103.84.78_9071734_1725264751034
上面这个链接是天猫超市的链接,获取到的ID是2,正则应该改为 (&|\?)id=(\d+)&?,然后把匹配改成2,这样天猫超市的链接或普通链接,都克获取到商品ID