title: How to slice characters from string using regex?
body: <p>I have the string <code>AccountDB\\DB</code>.</p>
  
  <p>I want to remove the 4 characters in the end <code>\\DB</code>, so desired result is a string looks like <code>AccountDB</code>.</p>
  
  <p>How can I slice the last four characters using regex?</p>