Correct regex which is used to detect if it's a connection problem