Don't underestimate the value...
Mark Sreeves:
Don't underestimate the value of delivering solutions that
do what the customer asks for. It may be nice to go the
extra mile and make it do even more, but in the real world,
customers seldom enjoy paying for software that does more
than they originally request.
This is not a defensive statement regarding your post at
all. Just a comment to any aspiring programmers who plan
one day to program for a living.
For most of the short term contracts I've been involved in,
the key requirements were: on-time delivery, delivery of
requirements, ease of use, reliability, documentation and
testing. Never have I had a disappointed customer due to
failure to deliver more than what was asked.
Having said that, I must agree that for any word including
punctuation (apostrophe or hyphen for example), the code I
did which seemed to me to be the simplest way of checking,
would not be complete.
To change the code, I would simply replace all characters
in the string that were not a-z or A-Z with "". Then do
the same test as I already do.
Regards