简体   繁体   English

Notepad++ 行间复制一个字符

[英]Notepad++ Copy one character between lines

Hope you can help me with this...希望你能帮我解决这个...

I have this data file where it's我有这个数据文件

The correct answer is A. and the reason for that answer is ....
ANSWER: 
The correct answer is B. and the reason for that answer is ....
ANSWER: 
The correct answer is C. and the reason for that answer is ....
ANSWER: 
The correct answer is D. and the reason for that answer is ....
ANSWER: 

I need someway to copy the letter A or B.. etc to the Answer: line我需要以某种方式将字母 A 或 B.. 等复制到答案:行

The correct answer is A
ANSWER: A
The correct answer is B
ANSWER: B
The correct answer is C
ANSWER: C
The correct answer is D
ANSWER: D

Can this be done?这可以做到吗? to only grab the letter without the dot.?只抓住没有点的字母。? Thanks谢谢

edit: adding the missing info.编辑:添加缺少的信息。 sorry about that对于那个很抱歉

Using Regex使用正则表达式

Find:寻找:

is (.)(.*)\r\nANSWER:

Replace代替

is \1\2\r\nANSWER: \1

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM