我正在使用 R 和 New 来正则表达式:我需要一个正则表达式来提取 'statuses_count' 以获得类似 json 的文本。数据被组织成一个数据框,每一行都有文本。样本数据行:
{'lang': u'en', 'profile_background_tile': False, 'statuses_count': 4414, 'description': u'Progessive,interested in the psychology of politics.
结果应该是:4414。
我正在考虑将 str_extract_all 与 perl 选项一起使用,但我不明白如何仅获取 'statuses_count' (?<=statuses_count.:)(something) 后面的数字
作为一个新手,很高兴能理解如何说“抓住 'statusescount' 之后的数字。” 谢谢!