
[已解決]批處理如何指定條件來提取前后的詞做成SPIN格式用批處理提取一批文件名 現在想進行二次加工 比如Authentic But Cheap Chanel Handbags For Women.txtAuthentic But Cheap Chanel Handbags from chanel outlet For Women.txtAuthentic Chanel Bags - online Store.txtAuthentic Chanel Handbags - How Do You Know.txtAuthentic Chanel Patent Handbag for You.txtAuthentic Chanel Products Online!.txtAuthentic Chanel Purse Online.txtAuthentic Chanel Vintage Bags Online.txt我想指定Chanel這個關鍵詞替換成{kye} 然后提取前后的詞前面的提取成一行做成{Authentic But |Authentic But|Authentic }保存到前面文本 然后后面也是這樣意思就是把上面數據 指定 Chanel提取前后的詞前面的都提取到一個文本里 做成SPIN格式就像{Authentic But |Authentic But|Authentic }這種后面的詞也全部提取到一個文本 做成 剛才做的SPIN格式 當然 我完整的數據很多所以我希望可以指定多個關鍵詞來提取kye1kye2 這樣我提供原本的數據 到附件供各位大大下載 希望能寫出來萬分感激

