compile-time regex redux
Sean Kelly
sean at f4.ca
Wed Feb 7 06:20:40 PST 2007
Walter Bright wrote:
>
> But I think we now have good reasons to revisit this, at least for
> compile time use only. For example:
>
> ("aa|b" ~~ "ababb") would evaluate to "ab"
>
> I expect one would generally only see this kind of thing inside
> templates, not user code.
Just a quick comment--I want to think about this a bit more. If we are
given compile-time regular expressions it may be useful if we could
obtain more information than this. For example, I would probably also
want to know where in the source string the match begins.
Sean
More information about the Digitalmars-d
mailing list