RegEx challenge (or just seems that way)

Hi again @Darren_Murphy and @Test_Test

I get this using the JavaScript plugin, In my case, I only want phones with the format:
XXXX-YYYYYYY (4 numbers <5 + “-” + 7 numbers)

const r = /([0-4]{4})-([0-9]{7}$)/;
return r.test(p1) 

I hope it helps!

Saludos.

2 Likes