2015-09-12 56 views
0

我有一個包含超過5000行的文本文件。每一行看起來是這樣的:如何在記事本++中格式化此txt文件

http://domain.com/xyz.html

每一道線條都是從其他線路的不同僅在XYZ部件。它看起來像這樣: http://domain.com/xyz.html http://domain.com/eee.html http://domain.com/sss.html http://domain.com/ddd.html ....... etc

我需要改變所有行散裝成了這個樣子: http://domain.com/xyz/xyz.html http://domain.com/eee/eee.html http://domain.com/sss/sss.html http://domain.com/ddd/ddd.html ...... etc

我怎樣才能做到這一點?

回答

4

CTRL + F
更換
勾選 「正則表達式」 按鈕(正則表達式)

搜索http:\/\/domain\.com\/(.*?)\.html
http:\/\/domain\.com\/\1\/\1\.html

+0

謝謝you.This更換工作是完美的。 – Medow

+0

不客氣:) – Neox