下圖列出了Python支持的正則表達式元字符和語法: ... p = re.compile('(a(b)c)d') >>> m = p.match('abcd') >>> m.group(0) 'abcd' >>> m.group(1) ...
確定! 回上一頁