Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Dumb Question - Build Large CString Pin
Stefan_Lang28-Sep-11 1:36
Stefan_Lang28-Sep-11 1:36 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz28-Sep-11 3:47
TheGreatAndPowerfulOz28-Sep-11 3:47 
GeneralRe: Dumb Question - Build Large CString Pin
Stefan_Lang28-Sep-11 3:51
Stefan_Lang28-Sep-11 3:51 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz28-Sep-11 6:59
TheGreatAndPowerfulOz28-Sep-11 6:59 
GeneralRe: Dumb Question - Build Large CString Pin
Stefan_Lang28-Sep-11 22:50
Stefan_Lang28-Sep-11 22:50 
GeneralRe: Dumb Question - Build Large CString Pin
Snorri Kristjansson4-Oct-11 3:25
professionalSnorri Kristjansson4-Oct-11 3:25 

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.