I'm trying to filter the contents of a vector of type string, based upon a regular expression.

NB: I'm using the boost::Regex library

So far, I've got the following

boost::regex r("[A-Z][A-Z]{3}<\\/t|[A-Z]{3}<\\/t|[A-Z\\.]{3}<\\/t");

for(int i = 0; i < vStream.size(); i++){
		if(boost::regex_match(vStream[i],r))
	cb->Append(vStream[i]); // cb is a combobox for my GUI

But this is returning an empty list. :(

Nevermind, I found an alternative solution.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.