Re: SHOUTING

2005-10-30 Thread Webmaster at FastTrack On Line
Maybe the Lcase function?

Jenny

- Original Message - 
From: Saturday (Stuart Kidd) [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, October 24, 2005 6:02 PM
Subject: stop: SHOUTING


 Hi guys,

 Just wondering if anyone knows a good way to recognise when all the
 characters are capitalised?  Some users love putting text in CAPS and
 it just looks awful when it's displayed on screen.

 Any help I'd be grateful.

 Thanks,

 Saturday


 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222644
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SHOUTING

2005-10-30 Thread Bobby Hartsfield
 Maybe the Lcase function?

I don’t believe that’s what the lcase function does ;)

Just compare the strings uppercase form to its original form...
Eg: find(ucase(str), str) 

It will return 1 if the string is all uppercase, 0 if it is not...

Of course... one lowercase letter in the middle of 1 uppercase letters
is not all uppercase though :)

You could easily write a looping function to count the number of uppercase
characters and compare that with the over all length of the string. Then you
could base your decision to allow/disallow the string on the percentage of
upper case characters vs lower case
 
Steps:
Loop over the string while #refind([A-Z], str, start)#. Each time #start#
will be the results of the refind()and a counter would be incremented by 1
(the counter will hold the number of uppercase characters in the end)

I've gotta run or I'd test out some actual code for you here. I'll be glad
to do I later if you want something like this but have trouble writing it.

Cheers

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Webmaster at FastTrack On Line
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 30, 2005 1:12 AM
To: CF-Talk
Subject: Re: SHOUTING

Maybe the Lcase function?

Jenny

- Original Message - 
From: Saturday (Stuart Kidd) [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, October 24, 2005 6:02 PM
Subject: stop: SHOUTING


 Hi guys,

 Just wondering if anyone knows a good way to recognise when all the
 characters are capitalised?  Some users love putting text in CAPS and
 it just looks awful when it's displayed on screen.

 Any help I'd be grateful.

 Thanks,

 Saturday


 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222657
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SHOUTING

2005-10-30 Thread Bobby Hartsfield
Here ya go...

cfscript
function ucasecount(str)
{
ucount = 0;
ufinder = refind([A-Z], str);

while (ufinder neq 0)
{
ucount = ucount + 1;
ufinder = refind([A-Z], str, ufinder+1);
}
return ucount;
}
/cfscript

cfset strng = AbCdEfGhI

cfoutput#ucasecount(strng)#/cfoutput


The function returns a single numeric value. It's the number of uppercase
characters found in the string. (In the example string... 5). You could
easily add more to it such as getting the actual percent of uppercase
characters that the number represents but the easiest way would be to just
see if it's more than half the characters and do what you need to do.

Example:
cfset tooMnayUC = len(trim(strng)) lt (ucasecount(strng)*2)

The string is #len(strng)# characters long. Out of those #len(strng)#
characters, #ucasecount(strng)# characters are uppercase.brbr
Are there too many uppercase characters? b#tooMnayUC#/b


 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 30, 2005 11:38 AM
To: CF-Talk
Subject: RE: SHOUTING

 Maybe the Lcase function?

I don’t believe that’s what the lcase function does ;)

Just compare the strings uppercase form to its original form...
Eg: find(ucase(str), str) 

It will return 1 if the string is all uppercase, 0 if it is not...

Of course... one lowercase letter in the middle of 1 uppercase letters
is not all uppercase though :)

You could easily write a looping function to count the number of uppercase
characters and compare that with the over all length of the string. Then you
could base your decision to allow/disallow the string on the percentage of
upper case characters vs lower case
 
Steps:
Loop over the string while #refind([A-Z], str, start)#. Each time #start#
will be the results of the refind()and a counter would be incremented by 1
(the counter will hold the number of uppercase characters in the end)

I've gotta run or I'd test out some actual code for you here. I'll be glad
to do I later if you want something like this but have trouble writing it.

Cheers

...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Webmaster at FastTrack On Line
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 30, 2005 1:12 AM
To: CF-Talk
Subject: Re: SHOUTING

Maybe the Lcase function?

Jenny

- Original Message - 
From: Saturday (Stuart Kidd) [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, October 24, 2005 6:02 PM
Subject: stop: SHOUTING


 Hi guys,

 Just wondering if anyone knows a good way to recognise when all the
 characters are capitalised?  Some users love putting text in CAPS and
 it just looks awful when it's displayed on screen.

 Any help I'd be grateful.

 Thanks,

 Saturday


 





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222663
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SHOUTING

2005-10-30 Thread Bobby Hartsfield
This one returns the percentage of the string that is uppercase. The string
explains my enthusiasm. ;)

cfscript
function ucasePercentage(str)
{
ucount = 0;
ufinder = refind([A-Z], str);

while (ufinder neq 0)
{
ucount = ucount + 1;
ufinder = refind([A-Z], str, ufinder+1);
}
return round((ucount / len(str)) * 100);
}
/cfscript

cfset strng = I Think I Am Having Way Too Much Fun With This Little
Script. It's Probably Because I've Been Forced To Write Nothing But .NET
Code For The Past Two Months. I Think My Project Manager Hates Me! LOL!

cfoutput
#ucasePercentage(strng)#% of this string is made up of uppercase characters.
/cfoutput


So now you can come up with what percentage of the string you want to allow
as uppercase and just check to see if #ucasePercentage(string)# is less than
that number. I don't know what kind of posts your users are making but be
aware that something like 'LOL' is 100% uppercase and probably legit. You
may also consider only checking for the uppercase percentage once the string
is longer than a specific number.


..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 30, 2005 12:40 PM
To: CF-Talk
Subject: RE: SHOUTING

Here ya go...

cfscript
function ucasecount(str)
{
ucount = 0;
ufinder = refind([A-Z], str);

while (ufinder neq 0)
{
ucount = ucount + 1;
ufinder = refind([A-Z], str, ufinder+1);
}
return ucount;
}
/cfscript

cfset strng = AbCdEfGhI

cfoutput#ucasecount(strng)#/cfoutput


The function returns a single numeric value. It's the number of uppercase
characters found in the string. (In the example string... 5). You could
easily add more to it such as getting the actual percent of uppercase
characters that the number represents but the easiest way would be to just
see if it's more than half the characters and do what you need to do.

Example:
cfset tooMnayUC = len(trim(strng)) lt (ucasecount(strng)*2)

The string is #len(strng)# characters long. Out of those #len(strng)#
characters, #ucasecount(strng)# characters are uppercase.brbr
Are there too many uppercase characters? b#tooMnayUC#/b


 
...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.6/151 - Release Date: 10/28/2005
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222664
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SHOUTING

2005-10-30 Thread Jim Davis
Nifty.

As further suggestions:

You might save metrics on this but not do anything at all at first.  That
way you could later go through and examine the messages occurring at certain
percentages and determine a good cut-off point.

You might also just find that your problem focuses on a very small number of
distinct people - smack them in line and you don't have to do anything.  ;^)
You might then just keep an eye on the statistics and warn people as needed.

You might also take the decision out of your hands by just warning people on
post.  Look at the message before it's submitted and present a warning
(Your message is 95% capital letters.  If you're shouting, please don't
shout.)

You can use the metrics collected (a simple log of messages which got the
warning would do) to check on how people are doing (are they honoring the
warning or not?)

For example sometimes we do shout.  Something like I've tried SCSI, IDE and
SATA and NOTHING WORKS!  Please HELP ME! might be forgiven.  ;^)  Letting
people know you're watching something can often curtail the behavior even if
you've no actual recourse for punishing the behavior.

Jim Davis




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222665
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


stop: SHOUTING

2005-10-24 Thread Saturday (Stuart Kidd)
Hi guys,

Just wondering if anyone knows a good way to recognise when all the  
characters are capitalised?  Some users love putting text in CAPS and  
it just looks awful when it's displayed on screen.

Any help I'd be grateful.

Thanks,

Saturday


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222100
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: stop: SHOUTING

2005-10-24 Thread Adkins, Randy
There maybe another way but you could always check the ASCII values.
Lowercase and UPPERCASE have different values.

However checking this for each letter in a TEXTAREA is quite a bit.

Sure there is another way.. Hopefully someone has an easy answer. 

-Original Message-
From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 24, 2005 2:03 PM
To: CF-Talk
Subject: stop: SHOUTING

Hi guys,

Just wondering if anyone knows a good way to recognise when all the
characters are capitalised?  Some users love putting text in CAPS and it
just looks awful when it's displayed on screen.

Any help I'd be grateful.

Thanks,

Saturday




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222102
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: stop: SHOUTING

2005-10-24 Thread Ben Doom
refind([a-z], text) is 0

Looks to find the first lowercase letter.  If none are found, it returns 0.

Of course, it won't help you find things like
i HAVE MY CAPS LOCK ON BY MISTAKE, sTUART!

--Ben

Saturday (Stuart Kidd) wrote:
 Hi guys,
 
 Just wondering if anyone knows a good way to recognise when all the  
 characters are capitalised?  Some users love putting text in CAPS and  
 it just looks awful when it's displayed on screen.
 
 Any help I'd be grateful.
 
 Thanks,
 
 Saturday
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222103
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: stop: SHOUTING

2005-10-24 Thread Justin D. Scott
 Just wondering if anyone knows a good way to recognise
 when all the characters are capitalised?  Some users
 love putting text in CAPS and it just looks awful when
 it's displayed on screen.

Ben's regexp should work, or you can compare...

cfif str is uCase(str)
is all caps
/cfif


-Justin Scott


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222104
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: stop: SHOUTING

2005-10-24 Thread Charlie Griefer
cfset theWord = form.UserInput /
cfif compare(form.UserInput, ucase(form.UserInput)) EQ 0  -- word is all caps

might be able to build on that?

On 10/24/05, Adkins, Randy [EMAIL PROTECTED] wrote:
 There maybe another way but you could always check the ASCII values.
 Lowercase and UPPERCASE have different values.

 However checking this for each letter in a TEXTAREA is quite a bit.

 Sure there is another way.. Hopefully someone has an easy answer.

 -Original Message-
 From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 24, 2005 2:03 PM
 To: CF-Talk
 Subject: stop: SHOUTING

 Hi guys,

 Just wondering if anyone knows a good way to recognise when all the
 characters are capitalised?  Some users love putting text in CAPS and it
 just looks awful when it's displayed on screen.

 Any help I'd be grateful.

 Thanks,

 Saturday




 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222105
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: stop: SHOUTING

2005-10-24 Thread Kerry
what about comparing number of uppercase characters to number of lowercase?

cfscript
str=i HAVE MY CAPS LOCK ON BY MISTAKE!;
str=rereplace(str,[^a-zA-Z],,ALL);
ucasecount = len(rereplace(str,[a-z],,ALL));
lcasecount = len(rereplace(str,[A-Z],,ALL));
if(ucasecount gt lcasecount){
writeoutput(More uppercase (ucasecount) than lowercase (lcasecount)
characters found. you might be SHOUTING.);
}
/cfscript

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: 24 October 2005 19:12
To: CF-Talk
Subject: Re: stop: SHOUTING


cfset theWord = form.UserInput /
cfif compare(form.UserInput, ucase(form.UserInput)) EQ 0  -- word is all
caps

might be able to build on that?

On 10/24/05, Adkins, Randy [EMAIL PROTECTED] wrote:
 There maybe another way but you could always check the ASCII values.
 Lowercase and UPPERCASE have different values.

 However checking this for each letter in a TEXTAREA is quite a bit.

 Sure there is another way.. Hopefully someone has an easy answer.

 -Original Message-
 From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 24, 2005 2:03 PM
 To: CF-Talk
 Subject: stop: SHOUTING

 Hi guys,

 Just wondering if anyone knows a good way to recognise when all the
 characters are capitalised?  Some users love putting text in CAPS and it
 just looks awful when it's displayed on screen.

 Any help I'd be grateful.

 Thanks,

 Saturday








~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222106
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SHOUTING

2005-10-24 Thread Bryan Stevenson
a brute force method would be to check the ascii number of each character 
(caps have diff number than lower) ;-)

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222107
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: stop: SHOUTING

2005-10-24 Thread Kerry
duh, what a backward way of doing it i just posted!

better way:

cfscript
str=i HAVE MY CAPS LOCK ON BY MISTAKE!;
ucasecount = len(rereplace(str,[^A-Z],,ALL));
lcasecount = len(rereplace(str,[^a-z],,ALL));
if(ucasecount gt lcasecount){
writeoutput(More uppercase (ucasecount) than lowercase (lcasecount)
characters found. you might be SHOUTING.);
}
/cfscript

-Original Message-
From: Kerry [mailto:[EMAIL PROTECTED]
Sent: 24 October 2005 19:19
To: CF-Talk
Subject: RE: stop: SHOUTING


what about comparing number of uppercase characters to number of lowercase?

cfscript
str=i HAVE MY CAPS LOCK ON BY MISTAKE!;
str=rereplace(str,[^a-zA-Z],,ALL);
ucasecount = len(rereplace(str,[a-z],,ALL));
lcasecount = len(rereplace(str,[A-Z],,ALL));
if(ucasecount gt lcasecount){
writeoutput(More uppercase (ucasecount) than lowercase (lcasecount)
characters found. you might be SHOUTING.);
}
/cfscript

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: 24 October 2005 19:12
To: CF-Talk
Subject: Re: stop: SHOUTING


cfset theWord = form.UserInput /
cfif compare(form.UserInput, ucase(form.UserInput)) EQ 0  -- word is all
caps

might be able to build on that?

On 10/24/05, Adkins, Randy [EMAIL PROTECTED] wrote:
 There maybe another way but you could always check the ASCII values.
 Lowercase and UPPERCASE have different values.

 However checking this for each letter in a TEXTAREA is quite a bit.

 Sure there is another way.. Hopefully someone has an easy answer.

 -Original Message-
 From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 24, 2005 2:03 PM
 To: CF-Talk
 Subject: stop: SHOUTING

 Hi guys,

 Just wondering if anyone knows a good way to recognise when all the
 characters are capitalised?  Some users love putting text in CAPS and it
 just looks awful when it's displayed on screen.

 Any help I'd be grateful.

 Thanks,

 Saturday










~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222108
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: stop: SHOUTING

2005-10-24 Thread Saturday (Stuart Kidd)
Thanks to everyone for their help on this.

Via everyone's help i've now got a solution.

:)


On 24 Oct 2005, at 19:28, Kerry wrote:

 cfscript
 str=i HAVE MY CAPS LOCK ON BY MISTAKE!;
 ucasecount = len(rereplace(str,[^A-Z],,ALL));
 lcasecount = len(rereplace(str,[^a-z],,ALL));
 if(ucasecount gt lcasecount){
 writeoutput(More uppercase (ucasecount) than lowercase  
 (lcasecount)
 characters found. you might be SHOUTING.);
 }
 /cfscript

Stu




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222125
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SHOUTING

2005-10-24 Thread Taco Fleur
I would use the following regex

\b[a-zA-Z][a-z]*\b


Taco Fleur - CEO
Pacific Fox http://www.pacificfox.com.au 
an industry leader with commercial IT experience since 1994 .

** Web Design and Development 
** SMS Solutions, including developer API
** Domain Registration, .COM for as low as AUSD$15 a year, .COM.AU for
AUSD$50 two years!
** Seamless Merchant integration
** We endorse PayPal, accept payments online now!


 -Original Message-
 From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, 25 October 2005 4:20 AM
 To: CF-Talk
 Subject: Re: SHOUTING
 
 
 a brute force method would be to check the ascii number of 
 each character 
 (caps have diff number than lower) ;-)
 
 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222126
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54