Boost logo

Boost Users :

From: yanbelinky (yanb_at_[hidden])
Date: 2003-08-07 02:04:04


Dear Regex Guru,

I am trying to use REGEX_SEARCH algorithm to match lookahed
subexpression.

Search in the folowing strings (see below) using expression
like: /exchange/test/(?!Drafts)/a.EML/b.png fails
/exchange/test/Drafts/a.EML/b.gif
/exchange/test/Inbox/a.EML/b.png
/exchange/test/Inbox/a.EML/b.gif
/exchange/test/Drafts/a.EML/b.png

At the same moment I can suceesfully search using the
expression: /exchange/test/Inbox/a.EML/b.(?!png).

>From online documentation I realize that regex supports lookahed
search.
Please help me understand what I am doing wrong.

P.S. It is tested with the program closely modeled from example
provided for regex_search.

Thank you for your help.

Yan Belinky
Senior Software Engineer.
Whale Communications, LTD.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net