Hi Tim,
Semantically I don't see too much difference between to consider [^
syntax as a "negated character set" or to
separate the ^ out and treat it as an unary operator with the lowest
precedence (only at the very beginning,
of course). The issue here is whether or not to consider the nested
Hi Sherman, ok so I'll admit to reading through to the end of your note
and finding it interesting ;-)
Some comments in-lined.
On 03/Jun/2011 22:55, Xueming Shen wrote:
> I'm sure everybody understands what "negated character classes" [^...]
> in j.u.regex means.
> You would never have doubt abou
I'm sure everybody understands what "negated character classes" [^...]
in j.u.regex means.
You would never have doubt about
[^c] does NOT match "c"
[^0-9] does NOT match "8"
[^a-z] does NOT match "b"
[^a-bc-d] does NOT match 'c"
But how about
does [^[c]] match "c"?
does [^[0-9]] match "8"?
doe