C
ch2x
Now I have a regular expression:
string pattern = @"[\s\S]*?(?<content>\<div
id='news'\>\<div[\s\S]*?\<\/div\>[\s\S]*?\<\/div\>)[\s\S]*";
I want to use this pattern to match a html file's content,and replace the
file's content with ${news}.
But if the content is not match the pattern ,the program will lose response.
Why ? and what shall I do?
string pattern = @"[\s\S]*?(?<content>\<div
id='news'\>\<div[\s\S]*?\<\/div\>[\s\S]*?\<\/div\>)[\s\S]*";
I want to use this pattern to match a html file's content,and replace the
file's content with ${news}.
But if the content is not match the pattern ,the program will lose response.
Why ? and what shall I do?