title: Problems in replacing a sentence with parentheses in Perl
body: <p>I have a sentence which needs to replaced after certain modifications.</p>
  
  <p>However, the sentence does not replace in my original file as it contains round brackets. How do i make sure it replaces because the presence of round brackets is not always necessary in a sentence.</p>
  
  <p>eg. <code>$table=~s/&lt;table-wrap-foot&gt;($foot1)&lt;\/table-wrap-foot&gt;/$foot/sg;</code>
  Here, the $foot may or may not have round brackets present. I have even tried using <code>\Q$foot\E</code>, but it fails to work.!!</p>
  
  <p>Any help would be appreciated</p>