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

前端 未结 7 1547
南方客
南方客 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:30

    '.*$
    

    Starting with a single quote ('), match any character (.) zero or more times (*) until the end of the line ($).

提交回复
热议问题