Boost logo

Boost Users :

From: Christoph (christoph.duelli_at_[hidden])
Date: 2006-04-24 15:09:55


Hi,

I would like to implement matching of SQL-LIKE clauses by Boost regex.
I need to convert strings like "HEL_LO%" into something regex("HEL.LO.*").
As the LIKE-string might contain characters like '.', '+* etc these need to
be escaped: "HE+LO%" -> regex("HE\+LO.*").

Another example are shell globs where * and ? take the place of % and _.

I have not found an obvious and easy way (besides doing the replacing and
escaping by hand) of how to do that using Boost.Regex. Is there any support
for this problem present in Boost?

Thank you and best regards
Christoph


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