|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Compare strings for case sensitivity
Consider the scenario where-in we need to compare the given string for the pattern 'SAP123' (CASE SENSITIVE). Even if the provided string is "SAp123" or "sap123" or "Sap123" or "SaP123" are not acceptable.
Following is a sample code to achieve this functionality:
As observed above, we need to have '#' before every character and not needed for digits (As we do not have upper case and lower case for digits).
If you want to check for multiple patterns, then it is better to use a range. Following is the sample code for the same:
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards