How to take only first line from the multiline text

前端 未结 3 628
别跟我提以往
别跟我提以往 2021-02-13 12:26

How can I get only the first line of multiline text using regular expressions?

        string test = @\"just take this first line
        even there is 
                 


        
3条回答
提交回复
热议问题