Your team's advice is almost right, except for the mistake he made. Once you find out why, you will never forget it. Take a look at this mistake.
/^(7|8|9)\d{9}$/
What this does:
^ and $ denotes anchored matches, which asserts that the subpattern in between these anchors are the entire mat...