[#1984] exclude trailing ,.; in external link

To fix issue #1984, the end char in the regex pattern can be anything but `,.;`