Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Validation

View previous topic View next topic Go down 
AuthorMessage
MSCurrency
Member
Member
MSCurrency

Posts : 4
Join date : 2011-05-22

Validation Empty
PostSubject: Validation   Validation EmptyWed Jun 29, 2011 6:38 am

Hi all,
I am trying to figure out how to make my expression validator validate all styles of the word "yellow"
example
Yellow
YeLlOw
etc...
is there another way to do this rather than type in every possible combination?
Back to top Go down
System
Member
Member
System

Posts : 3
Join date : 2011-05-11

Validation Empty
PostSubject: Re: Validation   Validation EmptyWed Jun 29, 2011 6:38 am

If you are using a Regex object, you can just append "/i" to your regular expression. Google "Regex + ignore case". If not, just convert your string to either upper or lower case. Don't type in every possible combination, that's just silly .
Back to top Go down
MSCurrency
Member
Member
MSCurrency

Posts : 4
Join date : 2011-05-22

Validation Empty
PostSubject: Re: Validation   Validation EmptyWed Jun 29, 2011 6:39 am

Some more detail on this (sorry wasn't in here before) I am developing on MS Visual Studio 10 and using their built in "regular expression validator"... now in the ValidationExpression I have [a-zA-Z] which according to all of the resources I have found should allow for all char a-z and A-Z but no matter what it throws me an error... so that is why i want to allow for any combo... so if joe schmoe types in AAron lYkins I want this to be valid... Thank you for your reply- it does give me an easy way to handle the data in my DB (haven't gotten that far, but if I waqnt uniform look in my DB i will have to do conversions in my string
Back to top Go down
Sponsored content




Validation Empty
PostSubject: Re: Validation   Validation Empty

Back to top Go down
 

Validation

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» form validation of a checkbox not quite right
» w3c validation - please help correcting the error
» Integer Arrays, Random Numbers, Try-Catch Validation

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Validation Edit-trash Useless :: Trash-