in reply to Removing trailing asterisk from lines with regex

$ matches at the end of line *or* just before the \n at the end of the line. Use Data::Dumper to look at $line, sounds like there is extra whitespace on the end
  • Comment on Re: Removing trailing asterisk from lines with regex