I think this regex is better:
/(?m)\A(Script error\.| |)\nUrl: [^\n ]*\nLine: 0?\nColumn: 0?\n/m
Submitted it here.