Fix regex to handle separate closing tags

Fix for https://github.com/Grandpappy/eXeMeL/issues/6