updated regex to allow link tags to end in / or />