Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2003-11-17 23:42:57

Brian McNamara wrote:

> I agree that it is desirable to be able to _statically_ (at
> compile-time) analyze and "compute on" regexps.
> The main disadvantage is that it forces us to write regexps "ugly":
> +(_1 = "hello ") >> "world"
> rather than "pretty":
> regexp("(hello )+world")

Some would say regular expressions are ugly any way you look at them.
:-) As an expression template, you can use whitespace, indenting and
comments to make your regular expression more readable. Beauty is in the
eye of coder.

Eric Niebler
Boost Consulting

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