|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-11-18 03:26:10
"Joel de Guzman" <joel_at_[hidden]> wrote in message
news:001901c3ad93$8e4dffa0$0100a8c0_at_godzilla...
[snip]
> 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
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk