I'm using reactjs in my project and want to set fixed format in input field that user can be enter only useful info. I already tried with react number format and try make custom but didn't get solution. so anybody help me for set format in input field like "ABCD-123EF".. means alphanumeric with dash and this is fix format. My code is:
<Input
type="text"
id="plate_number"
name="plate_number"
placeholder="Licence Plate"
value={this.state.plate_number}
onChange={this.onChangeHandle}
/>


^\w{4}-\w{4}$or^[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}$if you don't accept special characters