摘要: 转自http://blog.sina.com.cn/s/blog_70dd03910100np6u.html正则表达式的几个知识点:1."." 代表任意字符2. "*" 代表任意重复,同"+"3. \d数字;\s 空格;{}指定长度4. \A 缓冲区起始部分\Z缓冲区结束部分5. \w 匹配一个字符,支持宽字符6. ?表示匹配0次或者1次可以用在*后面,组成*?,用于非贪婪的重复,即符合条件的最小字符串(\d+),?用","分割的数字,最后一个?保证最后一个数字可以被匹配7. ^补集 [^123] 非123外的字符 阅读全文
posted @ 2014-03-29 22:08 言止予思 阅读(2584) 评论(0) 推荐(0) 编辑
摘要: 1 #include <regex> 2 #include <iostream> 3 #include <string> 4 #include <atlstr.h> 5 6 static std::string U2A(CString cstring) 7 { 8 if (::IsBadString 阅读全文
posted @ 2014-03-29 22:05 言止予思 阅读(991) 评论(0) 推荐(0) 编辑