Boost logo

Boost Users :

From: Rich Johnson (rjohnson_at_[hidden])
Date: 2004-02-04 08:36:34


On Wednesday, February 4, 2004, at 06:54 AM, Vikrant Rathore wrote:

> Hi,
>
> I am using the regex library and using the following expression. But
> it seems
> it is wrong. Since there is no compilation or linker error but runtime
> error.
>
> the expression is
>
> boost::regex e("*\\.exe")

Try ".*\\.exe"

  Regex's "*" matches any number of the _previous expression_.

--rich


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