Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-02-07 22:42:20


 

________________________________

        From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Sandeep Bantia
        Sent: Tuesday, February 07, 2006 7:23 PM
        To: boost-users_at_[hidden]
        Subject: [Boost-users] [Regex] : Unknown character sequence.
        
        
        Hi,
        
           I'm new to regex. This is basically what I was trying.
        
        #include <iostream>
        #include <boost/regex.hpp>
        
        int main()
        {
            std::string input = "sand._12";
           boost::regex reg(".*\._[0-9]+");
         
         If you're trying to escape the "." you probably also need to
escape the "\" by using "\\". It is a C string after all.



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