次の入力があり、正規表現がParagraphタグと一致した後に来るすべての/newlineを削除したいと思います。入力:
<head> \n
<P class="someclass"> \n (I will remove onle these ones)
Need to get this line.. \
出力:
<head> \n
<P class="someclass">Need to get this line.. \n
だから私がしたいのは/nに一致するものを削除して改行を削除することです。どうすればそれができますか?
または、/ nの後の行をキャプチャするには、この行を読み取る必要がありますか?