37,718
社区成员
发帖
与我相关
我的任务
分享
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> txt = '{"test":"a1b2c3","testtoo":123}'
>>> import re
>>> r = re.search(r':"(\w+)"', txt)
>>> print r.groups()
('a1b2c3',)
>>>