腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2308)
视频
沙龙
1
回答
在c++11下使用regex
、
可能重复:
std
::ifstream inf(in);try{
std
::string line;{ if(
std
::regex_match(line,
浏览 1
提问于2012-12-16
得票数 1
回答已采纳
2
回答
使用
std
::regex调用abort()以验证URL
、
、
、
#include <iostream> #include <regex> { if (
std
::regex_match ("http://www.google.com",
std
::regex("(http|https):\/\/(\w+\.)*(\w*)\/([\w
浏览 0
提问于2013-05-27
得票数 2
回答已采纳
1
回答
regex_search抛出
std
::
regex_error
、
、
、
std
::cmatch res;
std
::regex rx("<h(.)>([^<]+)");
std
::cout << res[1] << ". " << res[2
浏览 1
提问于2012-06-21
得票数 4
回答已采纳
2
回答
非常简单的C++代码,RegExp在Android上崩溃,但在OS上运行良好。
、
、
我有这个简单的C++代码,RegExp在Android上崩溃,但在OS上工作得很好:
std
::regex regexRule( "([0-9]+)x([0-9]+)-([0-9]+)x([0-9]+)" );if (
std
::regex_match( str, piecesMatch, regexRule) )
std
::cout <<
浏览 5
提问于2016-04-25
得票数 3
回答已采纳
1
回答
为什么这个C++11
std
::regex示例抛出
regex_error
异常?
、
、
、
我试图学习如何在C++11中使用新的
std
::regex,但我尝试的示例抛出了一个我不理解的
regex_error
异常。"; //
std
::regex
re
( "(
浏览 2
提问于2013-03-28
得票数 8
回答已采纳
1
回答
C++11中的Regexp运行时错误
、
此正则表达式给出运行时错误int main( int argc, const char* argv[] )
std
::regex test("[^*]");
terminate
called
after
throwing
an
instance
of '
std
::
regex_error
'
what
():
浏览 0
提问于2014-09-19
得票数 1
1
回答
如何匹配以'!‘开头的十进制数在C++中
、
112,2,3}"); {
std
::cout << "size: " << iter->size()
浏览 2
提问于2017-11-17
得票数 1
回答已采纳
1
回答
Regex在C++中的使用
、
、
我得到了这个正则表达式,我想问一下我是否正确地使用了它 parse+=temp; bool isMatchFound = regex_match(parse, match,
re
//D
浏览 2
提问于2013-11-20
得票数 2
回答已采纳
2
回答
` `
std
::
terminate
`如何知道如何特殊处理` `
std
::exception`s?
这struct A /*: public
std
::exception*/ {}; throw A{};}
terminate
called
after
throwing
an
ins
浏览 1
提问于2015-12-14
得票数 2
1
回答
为什么C++中的正则表达式抛出括号表达式中的无效范围异常?
、
我正在尝试使用C++正则表达式:#include <regex>{
std
::string str = "¡";//u00A1, trying to matchthis character bool mat
浏览 34
提问于2020-06-01
得票数 0
回答已采纳
1
回答
搜索文本,然后匹配元素
、
、
=\") (
std
::regex)
浏览 0
提问于2017-07-04
得票数 2
回答已采纳
1
回答
Boost Regex中的命名子表达式错误
、
、
、
我使用以下代码:boost::regex expr("(?<from1>.un)|(?; //Throws the error
std
::string s2 = boost::regex_replace(s,expr,fmt,boost::m
浏览 4
提问于2012-09-03
得票数 0
1
回答
理解区域设置类,locale::facet::_S_create_c_locale名称无效
、
我写过:auto mm_loc =
std
::locale("POSIX"); // OKauto an_loc =
std
::locale("en");//
terminate
called
after
throwing
an
浏览 1
提问于2014-10-12
得票数 3
回答已采纳
1
回答
C++ Regex "Parenthesis未关闭“。错误
、
<=(LEVEL_TYPE:\s))(\w+|[+-]*\d+)来尝试获取文件中的级别类型数据,该数据的格式类似于LEVEL_TYPE: UNDERWATER
std
::string<=(LEVEL_TYPE:\\s))(\\w+|[+-]*\\d+)");
std
::regex当我尝试运行它时,它会抛出错误:
terminate
called</
浏览 17
提问于2022-02-26
得票数 -1
回答已采纳
3
回答
如何自定义异常终止行为?
、
、
在g++和clang++中(至少在Linux中),在抛出异常而不捕获(未捕获的异常)之后,将显示以下典型消息:
what
(): Bye#include<stdexcept> throw
std
::runtime_error("#incl
浏览 1
提问于2013-06-23
得票数 5
回答已采纳
3
回答
regex_match找不到方括号
、
、
用一个斜杠对方括号进行反斜杠 #include <iostream>#include <regex>
std
::string str1 = "a/b/c[2]/d";
std
::string str2 = "(.*)a/b/c[2]/d(.*)&qu
浏览 0
提问于2016-04-13
得票数 2
回答已采纳
2
回答
C++异常字符串/char*异常行为
、
、
、
、
() const throw() {
std
::cout <<
what
_str.c_str() <<
std
::endl; return
what</e
浏览 6
提问于2016-09-03
得票数 3
回答已采纳
1
回答
在OS X中,C++未处理的异常不会自动打印
what
()的输出
、
、
请看下面这段代码:{ return 0;当我在Ubuntu Linux中用gcc编译并运行这个程序时,我得到了以下有用的输出:
what
():
std<
浏览 0
提问于2013-02-08
得票数 4
1
回答
正则表达式和Boost
、
、
\*\/|^\/\/");
terminate
called
after
throwing
an
instance
of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::
regex_error
> >'
what
浏览 1
提问于2012-09-28
得票数 1
1
回答
Regex程序没有捕获异常,其他问题
、
、
当我运行这段代码时:#include <regex> const string sourcefound" << endl; } catch(const exception& exc) {
浏览 5
提问于2013-10-25
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
iOS底层原理之—dyld与objc的关联
基于自制数据集的MobileNet-SSD模型训练
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券