Fix faulty regexp to detect closing tags only

Matched for every string that had closing tags - because the regexp
didn't reflect that they should be the only thing present there!