Use html5 pattern regexp in calculator input