According to my regex checker, I have successfully created a sequence that matches several types of UK telephone numbers, however when I try to put this into effect in my code I get a return of ‘false’.
Please advise
const tel = "+44 7868 193 061";
const validMobileNumber = num => num == /^(\+44\W?7\d{3}|07\d{3}|0044\W?7\d{3})\W?\d{3}\W?\d{3}$/g;
console.log(validMobileNumber(tel));