Quantcast
Channel: C++11 Regular Expression
Browsing all 11 articles
Browse latest View live

C++11 Regular Expression

Thanks Igor and Zheng.

View Article



C++11 Regular Expression

Um, I think you have got the point. The difference is all about the capture group -- the part between the parentheses.I marked Igor's reply as answer, he has made a thorough analysis for your issue. If...

View Article

C++11 Regular Expression

Can I take your answer like with the grouping we can split up the matching [ s2[1].str( ), s2[2].str() .. ].Where as in the first case as there is no grouping the matching string cant be split up and...

View Article

C++11 Regular Expression

Syed Babu wrote:Let me put my question in another wayregex r1("<.*>.*<.*>"); regex r2("<(.*)>(.*)</(\\1)>");What does the r1 search for and what does the r2 search for? Can you...

View Article

C++11 Regular Expression

OK. I may not have got it.Let me put my question in another wayregex r1("<.*>.*<.*>"); regex r2("<(.*)>(.*)</(\\1)>");What does the r1 search for and what does the r2 search...

View Article


C++11 Regular Expression

Syed Babu wrote:I'm unable to understand how the s1.size and s2.size differs as both  are searching for same match.What do you mean, the same? The two regular expressions are clearly...

View Article

C++11 Regular Expression

I'm unable to understand how the s1.size and s2.size differs as both are searching for same match.

View Article

C++11 Regular Expression

Syed Babu wrote:Unable to understand the first one. Both r1 and r2 looks alike except  the paranthesis but paranthesis is used to define the capture group. Then how the size differs?Which part of the...

View Article


C++11 Regular Expression

Got the answer for second question.Unable to understand the first one. Both r1 and r2 looks alike except the paranthesis but paranthesis is used to define the capture group. Then how the size differs?

View Article


C++11 Regular Expression

Syed Babu wrote:regex r1("<.*>.*</\\1>"); regex r2("<(.*)>(.*)</(\\1)>"); smatch s1,s2; string str = "Hello,world<book>C++</book>"; regex_search( str,s1,r1);...

View Article

C++11 Regular Expression

I have 2 questions.1. regex r1("<.*>.*<.*>"); regex r2("<(.*)>(.*)</(\\1)>"); smatch s1,s2; string str = "Hello,world<book>C++</book>"; regex_search( str,s1,r1);...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images