【发布时间】:2020-07-03 22:06:01
【问题描述】:
我在下面有这个列表:
originalscrape,scrapeDate,userId,username,full_name,is_private,follower_count,following_count,media_count,biography,hasProfilePic,external_url,email,contact_phone_number,address_street,isbusiness,Engagement %,MostRecentPostDate,AvgLikes,AvgComments,category,businessJoinDate,businessCountry,businessAds,countryCode,cityName,isverified
,07/03/2020 05:54 AM,="189389157",stronger_together_forever,stronger_together_forever ????????☀️,False,0,0,0,,False,,,,,No,0,Has no posts.,0,0,,,,,,,No
,07/03/2020 05:54 AM,="51807820",aaronistattoo,Aaron Is.,False,0,0,0,,False,,,,,No,0,Has no posts.,0,0,,,,,,,No
,07/03/2020 05:54 AM,="194962598",djcoley727,djcoley727,False,0,0,0,,False,,,,,No,0,Has no posts.,0,0,,,,,,,No
,07/03/2020 05:54 AM,="4182106610",cesararce1985,Cesar Arce,False,0,0,0,,False,,,,,No,0,Has no posts.,0,0,,,,,,,No
,07/03/2020 05:54 AM,="8957742561",minkwhiz,????????????????????????????????,False,0,0,0,,False,,,,,No,0,Has no posts.,0,0,,,,,,,No
我只想获取如下的用户 ID:
189389157
51807820
194962598
4182106610
8957742561
我用过^(?:[^,\r\n]*,){3}([^,\r\n]+).*,但它让我得到“用户名”,我想要的是用户ID。
我希望有人可以帮助我找到正确的正则表达式来仅提取用户 ID。
谢谢
【问题讨论】:
-
任何答案都解决了吗?请查看此页面when someone answers my question。