Re: [Boost-users] [Regex] : Unknown character sequence.

8 Feb
2006
8 Feb
'06
3:42 a.m.
________________________________ From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Sandeep Bantia Sent: Tuesday, February 07, 2006 7:23 PM To: boost-users@lists.boost.org 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.
7060
Age (days ago)
7060
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sohail Somani