
求批處理提取文本中每行最末尾的中括號及其內部字符求大神動動手指啊。我有幾百萬行格式基本固定的文本如下,每行末尾一定是一個中括號及內部字符。但是行中也可能出現中括號,現在我提取每行末尾那個中括號及其內部字符,行中中括號不要。求大神寫個批處理>CT_875 [Chlamydia trachomatis D/UW-3/CX]> superantigen-like protein [Staphylococcus aureus subsp. aureus str. Newman]> tryptophanyl-tRNA [synthetase] [Salmonella enterica subsp. enterica serovar Agona str. SL483]> AsnC [family transcriptional] regulator [Geodermatophilus obscurus DSM 43160]> methionyl-tRNA formyltransferase [[Clostridium] saccharolyticum WM1]

