[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Regular exp negation was Perl expression

On Tue, 9 Jan 2001 14:03:06 +0530 (IST)
sreangsu acharyya <sreangsua@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Is there any operator which negates a regular expression. I think "~" does
> it in perl, but I want to use it outside perl. Does POSIX define any such
> operator.

"^" is operator to negate. When used in start of exp. it is a anchor for compring from begining of the string.