On Sat, Oct 19, 2013 at 01:03:51PM -0700, Colin Percival wrote:
> On 10/19/13 02:40, Dag-Erling Smørgrav wrote:
> > -   P="[-+./:=%@_[[:alnum:]]"
> > +   P="[-+./:=%@_[~[:alnum:]]"

> Shouldn't this be
>       P="[-+./:=%@_~[[:alnum:]]"
> instead?

That is equivalent. Both versions match an open square bracket in
addition to the other characters.

[:class:] can be used within [...] to match a named character class.
Although it is common to see [[:class:]] in an RE or shell pattern, the
sequences '[[' and ']]' are not required.

-- 
Jilles Tjoelker
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to