in reply to regex help needed

if ( /exception(?!\s*handler)/i ) {

which means: exception, not followed by \s*handler.