2017-06-23 18 views
0

我有以下格式的數據。這些值在一列中。我需要轉置他們保持分隔符。我嘗試使用正則表達式'\ r \ n'替換值,但它什麼都不做。通過分隔符將列轉換爲行

653 
|110 
|1 January 2016 
|Default 
|Automatically identified, customer dialed 
|None 
|NPA dialed by customer 
|000-380-5414 
|03:59:57.5 
|4:01.9 
|CIC = 0000 |1 January 2016 
|03:59:35.5 
|4:23.9 
|10 
|SS7 from IC to AT, SS7 to EO |Tandem 
|104 
|Routing Indicator = Direct - Incoming Different network |104 
|Routing Indicator = Direct - Outgoing Different network |119 
|Trunk Group Number - Interoffice = 9056 |Network Interface Description = Feature Group D 
|Administrative Domain = 0 |Final module 
| 
625 
|119 
|1 January 2016 
|Default 
|Automatically identified, customer dialed 
|None 
|000-000-0000 
|NPA dialed by customer 
|000-380-5084 
|04:04:26.6 
|0:00.0 
|CIC = 0000 |1 January 2016 
|04:04:24.6 
|0:01.9 
|01 
|SS7 from IC to AT, SS7 to EO |Tandem 
|CAC not dialed, station not presub, no presub ind 
|Neither ANI nor CPN provided 
|104 
|Routing Indicator = Direct - Incoming Different network |104 
|Routing Indicator = Direct - Outgoing Different network |119 
|Trunk Group Number - Interoffice = 9056 |Network Interface Description = Feature Group D 
|Administrative Domain = 0 |Final module 
| 

我如何將它轉換爲以下結構

653|110|1 January 2016|Default|... 
652|119|1 January 2016|Default|... 

我有textpad和記事本+ +。任何幫助是非常讚賞...

回答

1

查找內容:\r\n\| 替換:\|

0

你可以這樣做:

  • 按Ctrl + H^
  • 查找內容:\R\|
  • 替換爲:|
  • 更換所有

說明:

\R : any kind of line break 
\| : pipe character 
相關問題