Return input which is malformed
Make inline regex because javascript regex is stateful
Error log is Apache's
Report error from logs