Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-11-18 03:26:10

"Joel de Guzman" <joel_at_[hidden]> wrote in message

> For instance, from the regex manual:
> "\\A(\\d{3,4})[- ]?(\\d{4})[- ]?(\\d{4})[- ]?(\\d{4})\\z". I really hate
> those escapes.

would it not be possible to make a small helper function which escapes
certain charactors in the string? Then eg. the above could be written

escaped( "\A(\d{3,4})[- ]?(\d{4})[- ]?(\d{4})[- ]?(\d{4})\z" )


just a thought


Boost list run by bdawes at, gregod at, cpdaniel at, john at