Andreas Matthias <[email protected]> writes:

> The following regexp find LuaTeX's TeX-warnings:
>
> "\\(?:LaTeX\\|Class\\|Package\\|pdfTeX\\|\\*\\)? ?[-A-Za-z0-9]* 
> ?[Ww]arning\\(?: +([- A-Za-z0-9]+)\\)?:"

This is probably a little safer in case we have non-ASCII chars in the log:

"\\(?:LaTeX\\|Class\\|Package\\|pdfTeX\\|\\*\\)? ?[-[:alnum:]]* 
?[Ww]arning\\(?: +([- [:alnum:]]+)\\)?:"

And I think we can reduce this to:

"\\(?:LaTeX\\|Class\\|Package\\|pdfTeX\\|\\*\\)?[- [:alnum:]]*[Ww]arning\\(?: 
+([^)]+)\\)?:"

Best, Arash

Reply via email to