Message: 5
Date: Mon, 29 Aug 2005 13:09:20 +0200
From: david bovill <[EMAIL PROTECTED]>
Subject: CamelCase
To: How to use Revolution <use-revolution@lists.runrev.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

What's the quickest way to find all the CamelCase words in some text
- anyone have a regular expression or script for this?



David,

Depending on the complexity of your text, you might find the following function useful:

function thereIsAnInteriorCapitalLetter tText  --Self referential name
  delete char 1 of tText
  delete char -1 of tText
  set the caseSensitive to true
  if toLower(tText)= tText then
    return false
  else return true
end thereIsAnInteriorCapitalLetter

Jim

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to