I am currently trying to use Regex++ and I almost got there. However, I try to use Regex++ with XML parser and I got some problem. Here is the xml expression. <subtree name="itinerary" regex="(<\\s*TR\\s*VALIGN=TOP>\\s*<TD\\s*WIDTH=250>\\s*<\\s*B \\s*>[^>]+AM</B>?)"> Since "<" and ">" are not valid in XML Syntax, I have to use "<" and ">". I have loaded the xml file in my program and did following thing. char* regex=NULL; _bstr_t strRegex; strRegex=pIXMLDOMNode->text; // regex="(<\\s*TR\\s*VALIGN=TOP>\\s*<TD\\s*WIDTH=250>\\s*<\\s*B \\s*> //[^>]+AM</B>?)"> regex = (char*)malloc(_bstr_t(strRegex).length()); lstrcpy(regex,strRegex); AfxMessageBox(regex); // got the same string. But when I compared with following string and I got "FALSE". char* temp="(<\\s*TR\\s*VALIGN=TOP>\\s*