| Charles A. Landemaine 2007-12-03, 7:33 am |
| On Nov 29, 6:19 pm, Ed Morton <mor...@lsupcaemnt.com> wrote:
> No, it doesn't. It's the same as the difference between:
>
> "(not 7) OR (not 3)" versus "not (7 OR 3)"
>
> By applying boolean algebra the former is equivalent to "not (7 AND 3)" which of
> course is any number since no number is both 7 and 3.
>
> In your case, "[\D\S]" means "(not digit) OR (not space)" is equivalent to "not
> (digit AND space)" which is any character since no character is both a digit and
> a space, whereas "[^\d\s]" means "not (digit OR space)" which is only the
> characters that are neither a digit nor a space (e.g. an alphabetic character or
> a punctioanion mark, or...).
>
Thanks Ed for the explanatin ;)
--
Charles.
|