Re: [WebDNA] checking for mixed case text
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102721
interpreted = N
texte = The easiest way I've found for mixed-case testing test involves using seedless [encrypt] contexts, which are case sensitive.[text]theName=Bob McDonald[/text][if ("[url][encrypt][theName][/encrypt][/url]"="[url][encrypt] [lowercase][theName][/lowercase][/encrypt][/url]") | ("[url][encrypt] [theName][/encrypt][/url]"="[url][encrypt][uppercase][theName][/ uppercase][/encrypt][/url]")][then][text]theName=[capitalize][theName][/capitalize][/text][/then][/if][theName] is now mixed caseBrian FriesBrainScan SoftwareOn Jun 16, 2009, at 11:08 AM, Dana E Keil wrote:> I'm trying to deal with people who enter their names IN ALL CAPS!!! > when registering (or those who enter all lowercase). The capitalize > tag does this, but it messes with names of people like O'Rourke, de > la Torre, and so on.>> So I figure that a good compromise would be to accept anyone's input > if they typed it in mixed case -- those who know that their names > have non-regular capitalization might be more likely not to write > their names in all caps (I think I'm not being delusional here).>> But I cannot figure out how to get WebDNA to check a text string to > report whether it is mixed case or not. The showif comparisons are > case insensitive by default and it looks like there's no option to > make them case sensitive.>> Does anyone have an idea how to do what I want?>> --> Dana> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/Brian FriesBrainScan Software
Associated Messages, from the most recent to the oldest:
The easiest way I've found for mixed-case testing test involves using seedless [encrypt] contexts, which are case sensitive.[text]theName=Bob McDonald[/text][if ("[url][encrypt][theName][/encrypt][/url]"="[url][encrypt] [lowercase][theName][/lowercase][/encrypt][/url]") | ("[url][encrypt] [theName][/encrypt][/url]"="[url][encrypt][uppercase][theName][/ uppercase][/encrypt][/url]")][then][text]theName=[capitalize][theName][/capitalize][/text][/then][/if][theName] is now mixed caseBrian FriesBrainScan SoftwareOn Jun 16, 2009, at 11:08 AM, Dana E Keil wrote:> I'm trying to deal with people who enter their names IN ALL CAPS!!! > when registering (or those who enter all lowercase). The capitalize > tag does this, but it messes with names of people like O'Rourke, de > la Torre, and so on.>> So I figure that a good compromise would be to accept anyone's input > if they typed it in mixed case -- those who know that their names > have non-regular capitalization might be more likely not to write > their names in all caps (I think I'm not being delusional here).>> But I cannot figure out how to get WebDNA to check a text string to > report whether it is mixed case or not. The showif comparisons are > case insensitive by default and it looks like there's no option to > make them case sensitive.>> Does anyone have an idea how to do what I want?>> --> Dana> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/Brian FriesBrainScan Software
Brian Fries
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
pay processing (2001)
WebCat2 - Getting to the browser's username/password data (1997)
Is this possible, WebCat2.0 and checkboxes (1997)
[searchString] (1997)
WAP and IIS server (2002)
[WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (2010)
Exclamation point (1997)
Re1000001: Setting up shop (1997)
How To (2003)
More on the email templates (I like it) (1997)
[UPPERCASE] (1997)
Project 2 (1998)
OT: Amazon Patents (2000)
Setting user and password (1999)
PR: WebCatalog Affiliates Program Announced -- Share the revenuefor promoting WebCatalog (2000)
WebCommerce: Folder organization ? (1997)
format_to_days on NT (1997)
date (2002)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
WebCat2 several catalogs? (1997)