Thus said Jeff Anderson on Tue, 21 Jan 2014 21:37:24 -0700: > It looks like a lone ^ by itself in a character class is a syntax error:
Also, not to be pedantic (ok, well, perhaps it is pedantry), but [] is not called a character class, it's a bracket expression. :-) Character classes are denoted by the [:word:] syntax. [:alnum:] is an example of a character class that can be used in a bracket expression: $ echo '^' | grep '[[:alnum:]]' $ echo $? 1 $ echo '123' | grep '[[:digit:]]' 123 Andy -- TAI64 timestamp: 4000000052df51a0 /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
