Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WaitForSingleObject Pin
Roger Stoltz28-Sep-11 21:18
Roger Stoltz28-Sep-11 21:18 
AnswerRe: WaitForSingleObject Pin
Albert Holguin29-Sep-11 3:42
professionalAlbert Holguin29-Sep-11 3:42 
QuestionCRichEditCtrl Flickring Pin
john563227-Sep-11 19:43
john563227-Sep-11 19:43 
AnswerRe: CRichEditCtrl Flickring Pin
Madhu Nair27-Sep-11 20:33
Madhu Nair27-Sep-11 20:33 
AnswerRe: CRichEditCtrl Flickring Pin
Software_Developer27-Sep-11 20:37
Software_Developer27-Sep-11 20:37 
AnswerRe: CRichEditCtrl Flickring Pin
Code-o-mat27-Sep-11 22:02
Code-o-mat27-Sep-11 22:02 
GeneralRe: CRichEditCtrl Flickring Pin
john563227-Sep-11 22:23
john563227-Sep-11 22:23 
QuestionMS TR1 Regex Pin
TenFiftyTwo27-Sep-11 12:54
TenFiftyTwo27-Sep-11 12:54 
I am new to the MS TR1 2008 implementation of regex.

My application used to use a regex provided by a third party sofware house (Tropic Sofware East) - but I decided to move to MS TR1 version (from all the reports I read - I am beginning to regret that decision).

Has any one else experienced problems with matching reg-expressions that are case sensitive? Here is an example:

...

fOption |= std::tr1::regex::icase; // Ensure case-insensitive.

...

try
{
a_pRegex->assign( a_pszString, fOption );
}

...

// later

std::string str = ( LPCTSTR )szString;
if( regex_match( str.begin(), str.end(), *m_pRegex ) )
{
// Yippie .. a match
...
}

It's not important about the variable names that get passed around in the code (as the snippet is obviously heavily edited. It nevertheless does not perform a match - even on a simple 'HELLO' and 'H[a-z]+O') - if anyone has any pointers as to where I am going wrong - I'd appreciate the help.

Regards.
James
QuestionRe: MS TR1 Regex Pin
David Crow27-Sep-11 15:48
David Crow27-Sep-11 15:48 
AnswerRe: MS TR1 Regex Pin
Peter_in_278027-Sep-11 16:17
professionalPeter_in_278027-Sep-11 16:17 
AnswerRe: MS TR1 Regex Pin
TenFiftyTwo27-Sep-11 23:11
TenFiftyTwo27-Sep-11 23:11 
QuestionRe: MS TR1 Regex Pin
David Crow28-Sep-11 2:22
David Crow28-Sep-11 2:22 
AnswerRe: MS TR1 Regex Pin
TenFiftyTwo28-Sep-11 3:22
TenFiftyTwo28-Sep-11 3:22 
AnswerRe: MS TR1 Regex Pin
Peter_in_278027-Sep-11 16:20
professionalPeter_in_278027-Sep-11 16:20 
QuestionDumb Question - Build Large CString Pin
jkirkerx27-Sep-11 9:23
professionaljkirkerx27-Sep-11 9:23 
AnswerRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 9:53
TheGreatAndPowerfulOz27-Sep-11 9:53 
AnswerRe: Dumb Question - Build Large CString Pin
Albert Holguin27-Sep-11 9:54
professionalAlbert Holguin27-Sep-11 9:54 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 10:07
Chuck O'Toole27-Sep-11 10:07 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 10:10
TheGreatAndPowerfulOz27-Sep-11 10:10 
GeneralRe: Dumb Question - Build Large CString Pin
Albert Holguin27-Sep-11 10:14
professionalAlbert Holguin27-Sep-11 10:14 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 10:23
TheGreatAndPowerfulOz27-Sep-11 10:23 
AnswerRe: Dumb Question - Build Large CString Pin
Code-o-mat27-Sep-11 9:55
Code-o-mat27-Sep-11 9:55 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 10:04
Chuck O'Toole27-Sep-11 10:04 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 10:08
TheGreatAndPowerfulOz27-Sep-11 10:08 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 10:19
Chuck O'Toole27-Sep-11 10:19 

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.