結果 : python extract substring based on pattern