- 帖子
- 2
- 积分
- 14
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2023-12-18
|
[文本处理] 批处理如何提取文本中的IP+端口号到一个新的文本?
有一个从网上抓取并生成的a.txt文本,里面的内容如下:{"result":{"id":"04cc2d078993232ddhffsdjkjr8a","targets":[{"target":"url","constraint":{"operator":"matches","value":"www.test.com\/*"}}],"actions":[{"id":"forwarding_url","value":{"url":"http:\/\/114.224.114.224:1011\/$1","status_code":301}}],"priority":1,"status":"active","created_on":"2023-11-30T04:06:26.000000Z","modified_on":"2023-12-17T23:00:43.000000Z"},"success":true,"errors":[],"messages":[]}
文本中的IP114.224.114.224和端口号1011是变动的,如何用批处理将“IP:端口号”提取并写入一个新的txt文本?谢谢大佬 |
|