\W excludes underscore

Поиск
Список
Период
Сортировка
От Erwin Brandstetter
Тема \W excludes underscore
Дата
Msg-id CAGHENJ7xxZXerZKo2e4x+AB27jNgbjmYM370ORqEP=jK_Kdb_g@mail.gmail.com
обсуждение исходный текст
Ответы Re: \W excludes underscore  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
Table 9.19. Regular Expression Class-shorthand Escape:

> \w [[:alnum:]_] (note underscore is included)
> ...
> \W [^[:alnum:]_] (note underscore is included)

This is misleading as \w *includes* underscore, but \W *excludes* it. I suggest:
 
\w [[:alnum:]_] (underscore is included)
...
\W [^[:alnum:]_] (underscore is excluded)


Regards
Erwin

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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Latest ISO is 2016, not 2011
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: \W excludes underscore