and I'm using boost regex in c++ and visual studio 2008. I cant seam to get that regex above to give out the content between <div class="Summary"> and </div> below is an example of what Im trying to do

If that doesn't work, try double-backslashes before the forward slash.
The mod_s switch ensures that the period can match newlines.
You've spurred me into installing boost (for the regexes if nothing else),
but I haven't done it yet, so I can't test it myself!

oogabooga

19Sep2008 07:16

Re: Boost Regex wont return value [c++]

Hey thekev,
I've had dinner, installed boost, and I think I've found the problem.
Try this as your regex string: ".*<div\\sclass=\"Summary\">(.*?)</div>.*"

thekevin07

19Sep2008 07:59

Re: Boost Regex wont return value [c++]

hmm that didn't work either same result as before it would just show a blank line. here is some more code the first part is a function that returns the string i need to get based on the regex. I have tested this function with about 8 other regexs and it should work with this one. the first parameter is the actual regex, the 2nd is the buffer string that contains our html page and the 3rd clears out xtra tags i dont need but i have omited that so it shouldnt be a problem. The second part is the actual calling of the function with the regex we are trying to figure out