"=?ISO-8859-1?B?V2VuIFlp?=" <896634148@xxxxxx> 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