Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-12-31 14:35:58


At 06:53 AM 12/31/2003, John Maddock wrote:

>> When I rebuild the inspect program yesterday (using VC++ 7.1), it
started
>> to incorrectly report some files as unlinked even though they really
are
>> linked.
>>
>> Here is an example of one of the missed links:
>>
>> <td><a href=
>>
"../tools/build/v1/borland-tools.html"><code>borland</code></a></td>
>>
>> A dump of the file shows the line endings are cr/nl.
>>
>> The regex that used to find this OK is:
>>
>> boost::regex url_regex(
>> "<\\s*"
>> "(?:A\\s+[^>]*HREF|FRAME\\s+SRC)" // A HREF or FRAME SRC
>> "\\s*=\\s*\"([^\"]*)\"",
>> boost::regbase::normal | boost::regbase::icase);
>>
>> Any ideas?
>
>There haven't been any regex changes that would affect that in a long
>while, and as the test program below demonstrates it does find the
>match you expect in this case, so the error must be somewhere else,

Duh! I should have tested further before bothering you. The problem was
actually the change in the filesystem library that now requires paths to be
explicitly normalized. Regex was working fine.

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk