当前位置: 首页 > news >正文

深圳专业网站设计哪家好wordpress缺陷

深圳专业网站设计哪家好,wordpress缺陷,如何删除网站的信息吗,怎么让织梦网站适合手机判断字符串是否包含正则表达式默认的特殊字符 业务描述#xff1a; 上层配置的字符列表中#xff0c;既有准确的字符串#xff0c;又有可以进行正则匹配的字符串#xff0c;这时候需要区分出来那些是正则匹配的字符串。 思路: 判断字符串中#xff0c;是否存在正则表达…判断字符串是否包含正则表达式默认的特殊字符 业务描述 上层配置的字符列表中既有准确的字符串又有可以进行正则匹配的字符串这时候需要区分出来那些是正则匹配的字符串。 思路: 判断字符串中是否存在正则表达式默认的特殊字符如*^${}等。 代码 #include iostream #include regexusing namespace std;// check if code contains regex special chars:*$^?\{}| static const string regexLimit {.*[*$^?\\\\{}|].*}; static const std::regex pattern(regexLimit); bool isRegex(const std::string str) {try {return std::regex_match(str, pattern);}catch(const std::exception e) {std::cout regex error: e.what() endl;return false;} }int main(int argc, char const *argv[]) {std::cout hello world! std::endl;string temp1 *demo.*;string temp2 ^com.*.demo.*;string temp3 car$;string temp4 com.ddmode;string temp5 com.d?dmode;string temp6 com.d\\dmode;string temp7 com.d{dmode;string temp8 com.d}dmode;string temp9 com.d|dmode;string temp41 com.demo.test;vectorstd::string list;list.push_back(temp1);list.push_back(temp2);list.push_back(temp3);list.push_back(temp4);list.push_back(temp5);list.push_back(temp6);list.push_back(temp7);list.push_back(temp8);list.push_back(temp9);list.push_back(temp41);for (size_t i 0; i list.size(); i){bool result isRegex(list[i]);printf(i:%ld isRegex?:%d\n, i, result);}printf(hello world end.);return 0; }输出 hello world! i:0 isRegex?:1 i:1 isRegex?:1 i:2 isRegex?:1 i:3 isRegex?:1 i:4 isRegex?:1 i:5 isRegex?:1 i:6 isRegex?:1 i:7 isRegex?:1 i:8 isRegex?:1 i:9 isRegex?:0 hello world end.
http://www.pierceye.com/news/783529/

相关文章:

  • 商务类网站设计成都网站设计建设推荐
  • 网站建设浏览器不兼容阳信做网站
  • 站酷设计网站官网网址网站多国语言
  • 网站建设经费保障中国域名网官网
  • 网站备案如何查询在wordpress教程
  • 新准则中公司网站建设费用计入什么科目360网页入口
  • 公司要网站建设thinkphp商城源码
  • 网站的定义tomcat做公司网站
  • 小程序开发公司网站源码下载阿里云搭建公司网站
  • 网站营销方案设计公司凡科可以做视频网站吗
  • 网站seo优化费用wordpress 做商城
  • 宁波网站设计哪家公司好电子商务电商网站设计
  • 网站添加提醒租网站需要多少钱
  • 网站关键字优化地点如何用手机做网站吗
  • 中国建设银行网站签名通下载站长工具seo词语排名
  • 七牛云官网登录郑州优化网站收费标准
  • 三亚专业网站建设电商网站开发思路
  • app手机端电子商务网站功能提供网站建设课程
  • 福田皇岗社区做网站公司办公室布局效果图
  • 音乐播放网站怎么做北京终端区优化
  • 广州市建设工程交易中心网站上海畔游网络科技有限公司
  • wordpress网站好慢页面模板怎么用
  • 网站建设维护是啥意思wordpress 路径
  • 汕头网站建设报价个体工商户注册公司流程和费用
  • 网站开发学的啥36kr源码WordPress
  • 最好的免费网站空间沈阳营销型网站
  • 如何制作一个好网站网络设计报告范例
  • 邯郸做网站最好的公司彩票网站制作
  • 酒店团购的网站建设网站建设的一些原理
  • 做淘宝网站需要什么网站设置快捷键