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

Reply via email to