String str = File. ReadAllText (@ "F: txt.txt", Encoding. GetEncoding ("gb2312"); // replace it with your string
Regex reg = new Regex (@"(? Is )(? <= <Divs * id = "" bookBrief "" s *>) s *
Match m = reg. Match (str );
Console. WriteLine (m. Groups tutorial [1]. Value );
Console. WriteLine (m. Groups [2]. Value );
Console. WriteLine (m. Groups [3]. Value );
Console. ReadLine ();
/*
"Jia Zhigang's" Spring and Autumn "2: Qinjin's grievances"
"Qi Chu is a hero, and his ambition is soaring. Chu Wang is waiting for a long time, and the north-south war is on the string ...... Jin's room is full of blood and rain, with a bid of intrigue and a leeching. Daqin's rising borders admire the Central Plains and marry Jin. It's hard to tell you how to appreciate your kindness and complaints ...... Thanks to the 19-year-old age, we were lucky to have an extraordinary team loyal and brave enough to go south and north, bear the humiliation, and finally return to the King ......"
Jia Zhigang
*/