modified footnote regex to catch punctuation in footnotes