Re: Negative lookbehind assertions in regexs

Поиск
Список
Период
Сортировка
От Julian Scarfe
Тема Re: Negative lookbehind assertions in regexs
Дата
Msg-id 09d701c5b098$10afee50$0600a8c0@Wilbur
обсуждение исходный текст
Ответ на PostgreSQL help  ("Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>)
Ответы Re: Negative lookbehind assertions in regexs  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: Negative lookbehind assertions in regexs  (Dawid Kuroczko <qnex42@gmail.com>)
Список pgsql-sql
>> I'd like a regex that matches 'CD' but not 'ABCD' in any part of the 
>> regex.

From: "Bruno Wolff III" <bruno@wolff.to>

> Something like:
> (^.?CD)|([^B]CD)|([^A]BCD)

Thanks to Bruno, and to Dawid who replied offline.  The above does the job 
nicely.

Any plans for a Perl Compatible Regular Expression operator? 
http://www.pcre.org/
Or are two regex operators enough?

Julian





В списке pgsql-sql по дате отправления:

Предыдущее
От: "Oz"
Дата:
Сообщение: Searching for results with an unknown amount of data
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Negative lookbehind assertions in regexs