I have two regex patterns
1) re1 = /^[0-9\b]+$/ is for allowing only numbers in the input field
2) re2 = /^(7|75|750)$/ is for allowing first 3 numbers of input field to be "750".
Now, I want to combine both the regex patterns where the input field should allow only 750 as first 3 numbers and remaining digits as numbers. I tried following,
const re3 = /^(7|75|750)|0-9\b]+$/
but it is not working.
Thanks in advance.
/^(?:7|75|750)[0-9]*$/but/^7(?:50?)?[0-9]*$/is better.