$ 0 0 Use ^ip http secure-server\r*\n $ end character regex's do not work as the configs are not trimmed.