google / textfsm

Python module for parsing semi-structured text into python tables.
Apache License 2.0
1.09k stars 168 forks source link

no timeout error or functionality #58

Closed gachteme closed 4 years ago

gachteme commented 4 years ago

Proposal to add a detailed timeout error allowing the template developer to quickly identify the offending regular expression.

I have found that some poorly written templates may have a line or lines that are syntactically correct but often result in a timeout when searching for a match. When this happens it may be hard to diagnose which line in the template is causing an issue.

Is this an issue worth addressing?

gachteme commented 4 years ago

Closing because efficient timeouts are not available in python. Might see if there is a way to tackle the underlying problem or provide more verbose debug printouts.