title: delete the beginning and the end string with regex
body: <p>I need a regular expression that can eliminate the beginning and end of a string. example i have:</p>
  
  <pre><code>&lt;br&gt;&lt;br&gt;&lt;br&gt;hi how are you&lt;br&gt;&lt;br&gt;&lt;br&gt;hi how are you&lt;br&gt;hi how are you&lt;br&gt;hi how are you&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
  </code></pre>
  
  <p>I need to delete the beginning and the end and just keep a <code>&lt;br&gt;</code> at the beginning of the string and end</p>
  
  <pre><code>&lt;br&gt;hi how are you&lt;br&gt;&lt;br&gt;&lt;br&gt;hi how are you&lt;br&gt;hi how are you&lt;br&gt;hi how are you&lt;br&gt;
  </code></pre>