你最好还是 regex groupings 以下内容:
所以我举个例子
regex = re.compile("\"(.*)\"(.*)") bobble_groups = regex.match(bobbles)
你可以用 bobble_groups.group(1) 只需获得引号即可。 见 named groups 如果你不想依赖索引号。
bobble_groups.group(1)