Boost logo

Boost :

From: moshebox_at_[hidden]
Date: 2001-05-15 08:34:21


I am trying out Regex for the first time , great libraries!

I am trying to match this expression :


on an HTML file , and when I call regex_search , it gets stuck and
won't return from the call. can some one help me understand what am I
doing wrong ?

BTW , I tried taking one character at a time , the minimal expression
that causes it to get stuck is : "<\\s*A.*>.*<");

        string s;
        boost::regex expression("<\s*A.*>.*<\s*/A.*>\s*</H.>");

        std::string::const_iterator start, end;
        start = s.begin();
        end = s.end();
        boost::match_results<std::string::const_iterator> results;

        unsigned int flags = boost::match_default;

        boost::regex_search(start, end, results, expression, flags);

thanks for your help

Boost list run by bdawes at, gregod at, cpdaniel at, john at