CamelCase
Jim Hurley
jhurley at infostations.com
Mon Aug 29 11:22:03 EDT 2005
>
>Message: 5
>Date: Mon, 29 Aug 2005 13:09:20 +0200
>From: david bovill <david at openpartnership.net>
>Subject: CamelCase
>To: How to use Revolution <use-revolution at lists.runrev.com>
>Message-ID: <91FBFCA6-AF5F-4EC0-8373-CC9C3FC59D1A at openpartnership.net>
>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
More information about the use-livecode
mailing list