Python 正則表達式

1.findallspa str = ":192.168.0.1:8080"co host, port = re.findall(r":(\w*)", address) 這裏findall將僅僅輸出分組中的內容。也就是雖然進行冒號的匹配可是不返回冒號。
相關文章
相關標籤/搜索