Isn't a carrot at the beginning of a character class a negation? Like ! before a boolean expression? Did you try escaping it?
-John On Jan 21, 2014 9:37 PM, "Jeff Anderson" <[email protected]> wrote: > It looks like a lone ^ by itself in a character class is a syntax error: > > $ echo '^^^^^^^' | pcregrep '[^]' > pcregrep: Error in command-line regex at offset 3: missing terminating ] > for character class > > /* > PLUG: http://plug.org, #utah on irc.freenode.net > Unsubscribe: http://plug.org/mailman/options/plug > Don't fear the penguin. > */ > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
