JSFiddle - React, Tailwind, and code Playground by Lalji Tadhani May 06, 2020 HTML <input oninput="this.value = this.value.toUpperCase().replace(/[^200]/, '')" maxlength="3">