Mask React Input value

Solution for Mask React Input value
is Given Below:

can some one who can help me with regex
i have textbox when i type textbox its should automatically convert into the mask


eg: 1 --> *
eg 2 -> * 

i need this format

i also need raw value what is the value is user have raw value 
and i also need this should be display in textbox