什么正则表达式会捕获从 ' 标记到行尾的所有内容? [英] What Regex would capture everything from ' mark to the end of a line?
本文介绍了什么正则表达式会捕获从 ' 标记到行尾的所有内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本文件,用单个 '
表示备注.
I have a text file that denotes remarks with a single '
.
有些行有两个引号,但我需要从 '
的第一个实例和换行符中获取所有内容.
Some lines have two quotes but I need to get everything from the first instance of a '
and the line feed.
I AL01 ' A-LINE '091398 GDK 33394178
402922 0831850 ' '091398 GDK 33394179
I AL02 ' A-LINE '091398 GDK 33394180
400722 0833118 ' '091398 GDK 33394181
I A10A ' A-LINE 102 ' 53198 DJ 33394182
395335 0832203 ' ' 53198 DJ 33394183
I A10B ' A-LINE 102 ' 53198 DJ 3339418
推荐答案
'.*
我相信您需要这个选项,Multiline.
I believe you need the option, Multiline.
这篇关于什么正则表达式会捕获从 ' 标记到行尾的所有内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文