我正在尝试从以下数据中提取关注者数量:
text':只有在一个人拒绝放弃之后,努力才会完全释放它的回报。拿破仑山#TruOptikhttp://t.co/pJH19C6CeP', in_reply_to_status_id': None, id': 464714440437268481L, favorite_count': 0, source': web', retweeted': False, 坐标': None, entity': {symbols': [], user_mentions': [], hashtags ': [{indices': [84, 93], text': TruOptik'}], urls': [], media': [{expanded_url': , display_url': pic.twitter.com/pJH19C6CeP', url' : , media_url_https': , id_str': 464714438142996480', sizes': {large': {h': 194, resize': fit', w': 259}, small': {h': 194, resize': fit ', w': 259}, medium': {h': 194, resize': fit', w': 259}, thumb': {h': 150, resize':crop', w': 150}} ,索引':[94, 116],类型':照片',id':464714438142996480L,media_url':,in_reply_to_screen_name':无,id_str':464714440437268481',retweet_count':0,in_reply_to_user_id':无,收藏的':False,geo':无,in_reply_to_user_id_str':无,可能敏感':False,lang':en',created_at':5 月 9 日星期五10:32:11 +0000 2014', in_reply_to_status_id_str': None, place': None}, is_translation_enabled': False, utc_offset': None, statuses_count': 19327, description': Tru Optik 命名为 Gartner Cool New Vendor for Info-Innovation在 Big Data 2014'中,friends_count':187,位置':斯坦福德,CT',profile_link_color':B39B00',profile_image_url':,以下':False,geo_enabled':False,profile_banner_url':,profile_background_image_url':,screen_name': TruOptik', lang': en', profile_background_tile': True,favourites_count': 55, name': Tru Optik Data Corp', notification': False, url':, created_at': Wed Mar 27 18:54:41 +0000 2013',contributors_enabled': False, time_zone': None, protected ':假,default_profile':假,is_translator':假}
我试过这个:
value.match(/.+((?<=followers_count': ).+(?=, profile_sidebar_border)).+/)
上面的代码应该提取 294,但新创建的列包含空值。我的正则表达式有什么问题吗?