Boost logo

Boost Users :

Subject: Re: [Boost-users] for help, some error of boost regx
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-26 00:06:20


AMDG

pirate-king wrote:
> Hello everyone,
>
> When I use boost_1_41_0 of regx in vs2005, I met this runtime error:
>
> boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::regex_error> >
>
> I search a lot, but there is not valid method to solve it. Can you do me a favor to give me the way to solve it.
>
> Thanks a lot
>
> my code is
>
> #include <boost/regex.hpp>
> #include <iostream>
> boost::regex e("(\\d{3, 4})[- ]?(\\d{4)})[- ]?(\\d{4})[- ]?(\\d{4})");
>

The error is in this global regex.

Missing } in quantified repetition. The error occured while parsing the
regular
expression fragment: '[- ]?(\d{4>>>HERE>>>)})[- ]?(\'.

In Christ,
Steven Watanabe


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