Daniel Frey wrote:
> Hi John, Hi .*,
>
> Given that I have a string 's' from somewhere, I'd like to create a
> regular expression where some part must match that string. The problem
> is, the 's' could contain characters that have a special meaning in
> regular expressions. Is there some support function that can provide
> an escaped version of 's'? Something that transforms "my.*string" into
> "my\.\*string"? If there isn't, would it be possible/easy to provide
> one?

You can turn on the literal flag type. All characters in your regular
expression are treated as literals.



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to