title: Perl Regex Match and Removal
body: <p>I have a string which starts with <code>//#...</code> goes upto the newline characater. I have figured out the regex for the which is this <code>..#([^\n]*)</code>.</p>
  
  <p>My question is how do you remove this line from a file if the following condition matches</p>