Search results

  1. C

    Good books to learn programming in C++

    I can mention two books that did NOT do a good for me: "Problem Solving with C++ - The Object of Programming" "Data Structures and Other objects Using C++" Both by Walter Savitch.
  2. C

    C++ regex: is there a way to use (.*?)

    trev, thanks for your code example. Much appreciated.
  3. C

    C++ regex: is there a way to use (.*?)

    Decided to abandon the regex and using string methods instead to locate and extract data. Still, I'm curious as to how matches in regex are to be understood.
  4. C

    C++ regex: is there a way to use (.*?)

    Thanks for the quick replies Alt and Levenson. @Levenson: I get the same error ("repetition-operator operand invalid") when using the complete regex you provided. If I substitute the (.*?) with your ([^<>]+) I get the correct match, but only one match. I think maybe I'm misunderstanding...
  5. C

    C++ regex: is there a way to use (.*?)

    Forgot to mention system specs: MacBook Pro. Mac OS X (10.5.8)
  6. C

    C++ regex: is there a way to use (.*?)

    Hi. I'm working on a method that should search a string of text and extract text in-between tags, and store the resulting strings in a vector<string> to be returned. Example: string to search: "dummy<t>test</t><t>test2</t>dummy" tags: "<t>", "</t>" desired result strings in vector...
Back
Top