def calc(rest):
	"Perform a basic calculation"
	mo = calc_exp.match(rest)
	if mo:
		try:
			return str(eval(rest))
		except Exception:
			return "eval failed... check your syntax"
	else:
		return "misformatted arithmetic!"