Regex to remove footer text with line breaks <p>I am hoping this is quite simple... I am trying to remove a footer from a block of text using a regular expression, this includes the two initial line breaks which is where my problem lies.</p> <pre><code> Message body blah blah balh {Line Break} {Line Break} ---------------------------------- Custom footer text </code></pre> <p>I have been experimenting with variations of <code>/\?(\r\n)(\r\n)([-{34}])/.*</code> but nothing is working.</p>