|
Boost : |
From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-05-16 06:21:31
>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 ?
I suspect that one gets pathological due to all those .*'s. There are so
many ways that the expression could match it just thrashes around trying to
find the "best" one. Try making the expression more precise, maybe
something like:
<\s*A[^>]*>.*?<\s*/A[^>]*>\s*</H.>
would do what you want?
- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk