Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #3788: POSIX regexp seems doesn't work for '(?!re) ' pattern



"Vitaly" <vitaly(dot)yakunin(at)gmail(dot)com> writes:
> SELECT author, type
>   FROM books WHERE "type" ~ '(?!novel)'; 

> This select work incorrect. It returns all types. 

Certainly.  That's a negative-lookahead pattern and is therefore
guaranteed to match somewhere in every string (at the end, if
nowhere else).

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group