Re: C# programmer wants to learn assembly?? plz help



Betov <betov@xxxxxxx> wrote...
David Jones <ncic@xxxxxxxxxx> écrivait
news:MPG.200049b8f4929257989699@xxxxxxxxxxxxxxxxxxxxx:

Look at the phone number validation in my reply to ªa\/b and give me
the
RosAsm version:

Accept any of:
(202) 555-1212
(202)555-1212
202/555-1212
202.555.1212
2025551212

HLL version:
if (/^(\(\d{3}\)\s?)?\d{3}[\-\.]\d{4}$/.test(str) ||
/^\d{3}([\-\.])\d{3}\1\d{4}$/.test(str) ||
/^\d{3}\/\d{3}[\-\.]?\d{4}$/.test(str) ||
/^\d{3}?\d{7}$/.test(str))
{
// ... valid ...
}
else
{
// ... invalid ...
}


You are a great clown, David. Congratulation: I was in a
sad mood today, and you succeeded to make me laugh a lot.

Glad I could entertain you. Since you're an expert assembly programmer,
would you mind having a crack at being more productive and writing an
equivalent function in assembly in less time? :) I would love to be
proven wrong.

David "honks his big red nose" Jones
.



Relevant Pages