我想刪除所有行,直到一些終止字符串。因此,像這樣:記事本+ +正則表達式
These
lines
|| that can contain numbers 123 or characters like |*{
will be removed
But the following lines
will
remain.
我想獲得:
But the following lines
will
remain.
我試圖尋找的正則表達式/removed$/
,並替換爲空字符串,但它說0 matches
。
我該怎麼做?
感謝您的幫助!
是'。'一個特殊的人物?嘗試用'\'來代替它 –
不要介意點。我刪除它。對不起。我的終止字符串實際上是一個帶有字母的字符串。 – jeff