Moved the backslash removal into the regex, removed makelink() since it's only used once.
Regex now more accurate, also includes links at the end of a file without a trailing newline.
changed mac version to read rtf files instead.