I have met an issue that, with certain regex and certain regex engine, some string to match triggered an unexpected CPU usage.
The problem was not hard to address AFTER it happened. So my question is, is there a way to prevent it? Maybe not exactly, but "most of the cases".
I am thinking some tool, that would tell me the general resource usage of the regex and critical cases.