title: How do I match an exact string with special characters in it?
body: <pre><code>import re 
  data = "sda      8:0    0 107374182400  0 disk \r\n\root@awx1:~[root@awx1 ~]# s"
  re.sub(r"root@awx1:~\[root@awx1 ~\]# s","",data)
  'sda      8:0    0 107374182400  0 disk \r\n\root@awx1:~[root@awx1 ~]# s'
  </code></pre>
  
  <p>It does not gets replaced. How can I match the substring with regex and replace it? </p>