What Regex would capture everything from ' mark to the end of a line?

前端 未结 7 1521
南方客
南方客 2020-12-12 16:32

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 \

7条回答
  •  再見小時候
    2020-12-12 17:10

    When I tried '.* in windows (Notepad ++) it would match everything after first ' until end of last line.

    To capture everything until end of that line I typed the following:

    '.*?\n
    

    This would only capture everything from ' until end of that line.

提交回复
热议问题