Re: Testing a String for 'most' Capitalised
| From: | Jochem Maas | Date: | Mon, 10 Oct 2005 16:17:53 +0000 |
| Subject: | Re: Testing a String for 'most' Capitalised | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223827@lists.php.net to get a copy of this message | ||
Greg Donald wrote:
On 10/10/05, Jochem Maas <jochem@iamjochem.com> wrote:I guess reading the question was out of the question? and as for me not being the OP - might I suggest a decent new reader or mail client so you can actually view the thread structure?I AM NOT THE OP THANKS, I'm quite capable of solving such a problem without the help of people who don't bother to think beyond 'sample data' ...Yeah, everyone should read minds automatically, I agree.
you didn't say that right IFAICT. try exchanging 'wad' for 'panties' - now you have an idiom.It's bloody obvious that the data in question (sample or not) will not be in an order that means the string with the most capital letters will be 'top of the list' after a sort().No sense in getting your panties in a bloody wad. Did I say that right? I so rarely get to use 'bloody' in programming conversation.
The code I posted works with the sample data provided. Sorry if itright. but it doesn't answer the question, so you have probably confused the OP (or the confusion will arise some four weeks after having implemented your suggestion when he realises _something_ is not working as it should) - although given the direction of this thread he has no more excuse for not knowing that your cute trick will get him into 'trouble'.
bothers you that I didn't test it with a full dictionary word list.the oxford abridged version would have sufficed. ;-)
my point being that 'blase' is not a positive attribute for an engineer. we can agree to disagree on that one though! "the blase NASA launch engineer didn't bother to check the fuel line all the way through because it had passed all the checks on a previous run." "BOOOOOOM"*shrug* is rather blasee btw.http://dictionary.reference.com/search?q=blasee Blase? Why yes.. that's me in a nutshell.
-- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/