complement to $
Ali Çehreli
acehreli at yahoo.com
Fri May 14 13:42:28 PDT 2010
Steven Schveighoffer wrote:
> In regex, ^ matches beginning of the line, $ matches end of the line
So far so good... :)
> So how does this look: coll[^..$];
Speaking of regex, [^ sequence starts a set of excluded characters. :)
$ has always bugged me anyway, so how about no character at all:
coll[..n]; // beginning to n
coll[n..]; // n to end
coll[..]; // all of it
I like it! :)
Ali
More information about the Digitalmars-d
mailing list