Question: I have to make a Regex reference that start with a group of three letters, followed by a hyphen and then a five-digit number. to

I have to make a Regex reference that start with a group of three letters, followed by a hyphen and then a five-digit number.

to make a booking reference in the code I posted the code below

I only need the pattern fix

if (inputElement.id == "reference") { pattern = /^[a-zA-Z]d{3}[-\0-9]{5}$/;

this pattern is and example but is wrong I need to fix it so can accept the input below }

have to be able to submit in the app a input like ABC-12345

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!