Won't this regex match `anything # anything` ?  (Since that character group is literally "not newline".)

With the code below, won't this just completely remove _any_ line that even contains a `#` character?