|
In MFC, use the regular class in ATL to develop regular expression programs, and use regular expressions to test normal examples. Testing in the program is not correct. Please give pointers.
Let me give two examples. Let me show you:
1. The regular expression that I want to match a date is:\d {4} -\d {2} -\d {2}, and the string I entered is 2016-12-30, but the result does not match.
2. The regular expression I want to match the Sina Break News URL is: http://sports\.sina\.com\.cn/\w/\d{4}-\d{2}-\d{2}/\d+.shtml, and I The input string is http://sports.sina.com.cn/g/2017-01-04/05012672491.shtml, if it does not match. |
|