Regex Match all characters between two strings

后端 未结 14 1057
星月不相逢
星月不相逢 2020-11-21 07:42

Example: \"This is just\\na simple sentence\".

I want to match every character between \"This is\" and \"sentence\". Line breaks should be ignored. I can\'t figure o

14条回答
  •  面向向阳花
    2020-11-21 07:52

    Sublime Text 3x

    In sublime text, you simply write the two word you are interested in keeping for example in your case it is

    "This is" and "sentence"

    and you write .* in between

    i.e. This is .* sentence

    and this should do you well

提交回复
热议问题