| От | Richard Huxton |
|---|---|
| Тема | Re: Quick Regex Question |
| Дата | |
| Msg-id | 476A4E7F.1010504@archonet.com обсуждение исходный текст |
| Ответ на | Re: Quick Regex Question (Martijn van Oosterhout <kleptog@svana.org>) |
| Список | pgsql-general |
Martijn van Oosterhout wrote: > On Thu, Dec 20, 2007 at 11:51:34AM +0100, A. Kretschmer wrote: >> am Thu, dem 20.12.2007, um 10:36:08 +0000 mailte Howard Cole folgendes: >>> Your expression works fine Richard, as does '(^| )ho', but can you tell >>> me why '[ ^]ho' doesn't work? >> With ^ you means an anchor, but within the brackets it's a simple char. > > Err no, it inverts the test. [^ ] means any character *except* a space. But only if it's the first character within the brackets. Which is the opposite of how "-" behaves inside square-brackets of course. Aren't regexps fun :-) -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера