changed regex, select output, return result

small changes
edited regex to get ideone error message, send it with error
regex and error message information should now work