Boost logo

Boost Users :

From: Roger Leigh (rleigh_at_[hidden])
Date: 2007-05-02 18:32:10


"John Maddock" <john_at_[hidden]> writes:

> Use regex_search. regex_match will only succeed if the expression matches
> *all* of the string, regex_search will *find* a sub-string that matches.

Just to clarify this point. Does this mean that regex_match
effectively puts ^ and $ on either side of my regex, to ensure it
matches the whole string, whereas regex_search does not?

Many thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.



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