Click here to Skip to main content
15,906,574 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionboost::regex_match Pin
Meisterzunge21-Apr-11 21:01
Meisterzunge21-Apr-11 21:01 
AnswerRe: boost::regex_match Pin
Richard MacCutchan21-Apr-11 22:49
mveRichard MacCutchan21-Apr-11 22:49 
GeneralRe: boost::regex_match Pin
Meisterzunge22-Apr-11 0:07
Meisterzunge22-Apr-11 0:07 
GeneralRe: boost::regex_match Pin
Richard MacCutchan22-Apr-11 0:28
mveRichard MacCutchan22-Apr-11 0:28 
AnswerRe: boost::regex_match Pin
Stephen Hewitt23-Apr-11 20:27
Stephen Hewitt23-Apr-11 20:27 
GeneralRe: boost::regex_match Pin
Meisterzunge24-Apr-11 6:39
Meisterzunge24-Apr-11 6:39 
GeneralRe: boost::regex_match Pin
Stephen Hewitt25-Apr-11 19:01
Stephen Hewitt25-Apr-11 19:01 
AnswerRe: boost::regex_match Pin
Stephen Hewitt25-Apr-11 19:23
Stephen Hewitt25-Apr-11 19:23 
Your regular expression isn't valid. What's more, the program is trying to tell you what's wrong. I used the following code:
void Go()
{
	try
	{
		CString path = _T("abcd");
		static const boost::tregex r(_T("*bc"));
		boost::tmatch what;
	 
		if(boost::regex_match(path, what, r))
		{
		}
		else
		{
		}
	}
	catch (const boost::regex_error &e)
	{
		cout << e.what() << endl;
		throw;
	}
}


The following error is the result:
The repeat operator "*" cannot start a regular expression.  The error occured while parsing the regular expression: '>>>HERE>>>*bc'.


The regular expression you're probably after is: .*bc
Steve

GeneralRe: boost::regex_match Pin
Meisterzunge26-Apr-11 5:06
Meisterzunge26-Apr-11 5:06 
GeneralRe: boost::regex_match Pin
Stephen Hewitt27-Apr-11 5:52
Stephen Hewitt27-Apr-11 5:52 
GeneralRe: boost::regex_match Pin
Meisterzunge28-Apr-11 6:06
Meisterzunge28-Apr-11 6:06 
GeneralRe: boost::regex_match Pin
Stephen Hewitt29-Apr-11 4:57
Stephen Hewitt29-Apr-11 4:57 
Questionresize multiple dimensional vector array in while loop Pin
cy163@hotmail.com19-Apr-11 5:03
cy163@hotmail.com19-Apr-11 5:03 
QuestionHow to resize multiple dimensional vector array [modified] Pin
cy163@hotmail.com18-Apr-11 4:46
cy163@hotmail.com18-Apr-11 4:46 
AnswerRe: How to resize multiple dimensional vector array Pin
Cool_Dev18-Apr-11 22:50
Cool_Dev18-Apr-11 22:50 
QuestionSize of executable doubles since Windows Update on April 14, 2011 Pin
Big Art16-Apr-11 12:31
Big Art16-Apr-11 12:31 
AnswerRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
barneyman22-Apr-11 0:11
barneyman22-Apr-11 0:11 
GeneralRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
Big Art22-Apr-11 17:05
Big Art22-Apr-11 17:05 
AnswerRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
Hans Dietrich26-Apr-11 8:06
mentorHans Dietrich26-Apr-11 8:06 
GeneralRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
Big Art1-Jul-11 10:51
Big Art1-Jul-11 10:51 
AnswerRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
Hans Dietrich1-Jul-11 14:25
mentorHans Dietrich1-Jul-11 14:25 
QuestionProblem creating instance using com smart pointer. Pin
Dhadhan13-Apr-11 18:35
Dhadhan13-Apr-11 18:35 
Questionhow can I draw one Line in different windows? Pin
caiguosen11-Apr-11 4:00
caiguosen11-Apr-11 4:00 
AnswerRe: how can I draw one Line in different windows? Pin
Richard MacCutchan11-Apr-11 4:20
mveRichard MacCutchan11-Apr-11 4:20 
QuestionWindows Media Player Plugin - Property Page Issue Pin
dexter7505-Apr-11 18:56
dexter7505-Apr-11 18:56 

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.