
Sovereign Bank requires you to enter your home phone number in this format, ###-###-####.
If you enter your home phone number as ########## you get an error message that says:
Home Phone must be entered in the format ###-###-####Why?
Why is that?
It's a computer.
A computer is able to auto format this ########## to ###-###-####.
But it doesn't. It's not programmed to do it.
This is a human error.
That's not human error, that's just programmer laziness. Half a second on Google would let them accept whatever you put in:
ReplyDeleteif($string =~ m/[\)\s\-]\d{3}-\d{4}[\s\.\,\?]/)
{print "Phone line: $string\n"};
Right.
ReplyDeleteThe programmer's error was not putting that code in.
Could have been lazy, might not have thought about it, or had no user interface testing.
if($string =~ m/[\)\s\-]\d{3}-\d{4}[\s\.\,\?]/)
ReplyDelete{print "Phone line: $string\n"};
https://www.sovereignbank.com/utils/
auto_enroll/enrollment.asp?bhcp=1
Somehow I don't think your code will work very well...
Maybe someone hired contractors who made a whole mess of code that the programmers have been spending the last few years fixing, and they this isn't considered a priority, considering that if you format it the way you are asked to, it will work fine.