How to extract a substring until newline character from a string

visit shbcf.ru