Re: Is there a way make the lex program match multiple line?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is there a way make the lex program match multiple line?
Дата
Msg-id 2659555.1687053008@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is there a way make the lex program match multiple line?  ("Wen Yi" <896634148@qq.com>)
Ответы Re: Is there a way make the lex program match multiple line?
Список pgsql-general
"=?ISO-8859-1?B?V2VuIFlp?=" <896634148@qq.com> writes:
> Can someone give me some advice to make the ['].+['] match multiple string?

You should check the flex manual, but it's likely that "." doesn't
match newline.  Another problem with this pattern is that "."
*does* match "'", so it's ambiguous what will happen with quotes.
You probably need something closer to [']([^']|\n)[']

            regards, tom lane



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

Предыдущее
От: "Wen Yi"
Дата:
Сообщение: Is there a way make the lex program match multiple line?
Следующее
От: "Wen Yi"
Дата:
Сообщение: Re: Is there a way make the lex program match multiple line?