making sure regex uses . to match ANY charcter, not just excluding newlines