Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Button behaviour Pin
AbhiHcl13-May-10 0:16
AbhiHcl13-May-10 0:16 
GeneralRe: Button behaviour Pin
CPallini13-May-10 0:23
mveCPallini13-May-10 0:23 
GeneralRe: Button behaviour Pin
AbhiHcl13-May-10 1:02
AbhiHcl13-May-10 1:02 
GeneralRe: Button behaviour Pin
CPallini13-May-10 1:34
mveCPallini13-May-10 1:34 
AnswerRe: Button behaviour Pin
David Crow13-May-10 3:28
David Crow13-May-10 3:28 
AnswerRe: Button behaviour Pin
Fareed Rizkalla13-May-10 12:46
Fareed Rizkalla13-May-10 12:46 
Questiontr1::regex Pin
sashoalm12-May-10 23:30
sashoalm12-May-10 23:30 
AnswerRe: System::Text::RegularExpressions Pin
Software_Developer12-May-10 23:43
Software_Developer12-May-10 23:43 
Try Namespace: System::Text::RegularExpressions



#using <System.dll>

using namespace System;
using namespace System::Text::RegularExpressions;
int main()
{
    
   Regex^ rx = gcnew Regex( "\\b(?<word>\\w+)\\s+(\\k<word>)\\b",static_cast<RegexOptions>(RegexOptions::Compiled | RegexOptions::IgnoreCase) );
 
   String^ text = ""something" "something"";
   MatchCollection^ matches = rx->Matches( text );
   Console::WriteLine( "{0} matches found.", matches->Count );

  for each (Match^ match in matches)
   {
      String^ word = match->Groups["word"]->Value;
      int index = match->Index;
      Console::WriteLine("{0} repeated at position {1}", word, index);   
   }
}




http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx[^]
GeneralRe: System::Text::RegularExpressions Pin
Stephen Hewitt13-May-10 1:00
Stephen Hewitt13-May-10 1:00 
AnswerRe: tr1::regex PinPopular
Stephen Hewitt13-May-10 1:07
Stephen Hewitt13-May-10 1:07 
QuestionAdding FormView (IDD_FORMVIEW ) to CFrameWnd Pin
TechAvtar12-May-10 23:18
TechAvtar12-May-10 23:18 
QuestionHello,everyone,I want to ask an question Pin
hanyonglu12-May-10 22:47
hanyonglu12-May-10 22:47 
AnswerRe: Hello,everyone,I want to ask an question Pin
CPallini12-May-10 23:26
mveCPallini12-May-10 23:26 
GeneralRe: Hello,everyone,I want to ask an question Pin
Tim Craig13-May-10 7:33
Tim Craig13-May-10 7:33 
AnswerRe: Hello,everyone,I want to ask an question Pin
Michel Godfroid12-May-10 23:39
Michel Godfroid12-May-10 23:39 
GeneralRe: Hello,everyone,I want to ask an question Pin
Stephen Hewitt13-May-10 1:11
Stephen Hewitt13-May-10 1:11 
JokeRe: Hello,everyone,I want to ask an question Pin
Michel Godfroid13-May-10 1:15
Michel Godfroid13-May-10 1:15 
GeneralRe: Hello,everyone,I want to ask an question Pin
CPallini13-May-10 7:37
mveCPallini13-May-10 7:37 
AnswerRe: Hello,everyone,I want to ask an question Pin
loyal ginger13-May-10 3:38
loyal ginger13-May-10 3:38 
AnswerRe: Hello,everyone,I want to ask an question Pin
Fareed Rizkalla13-May-10 12:48
Fareed Rizkalla13-May-10 12:48 
Questionwhat is the diffrence between Regtlib.exe and Regtlibv12.exe Pin
pandit8412-May-10 21:18
pandit8412-May-10 21:18 
Questiondelete whole columns in list view /win32 Pin
arun_pk12-May-10 20:49
arun_pk12-May-10 20:49 
AnswerRe: delete whole columns in list view /win32 Pin
Graham Breach12-May-10 20:56
Graham Breach12-May-10 20:56 
GeneralRe: delete whole columns in list view /win32 Pin
arun_pk12-May-10 21:01
arun_pk12-May-10 21:01 
GeneralRe: delete whole columns in list view /win32 Pin
Nuri Ismail12-May-10 21:07
Nuri Ismail12-May-10 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.