Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-12-02 08:58:53


John Kiopela wrote:
>> Can somebody please help me with this regular expression? I'm trying
>> to find out how I can type "any character except the string 'END
>> FINANCIAL INFORMATION'", but without succes so far.

You could use forward lookahead for this:

"(?:(?!END FINANCIAL INFORMATION).)+"

which matches any sequence of characters not containing the string "END
FINANCIAL INFORMATION".

HTH, John.


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