You need to sign in to do that
Don't have an account?
rajgopal10
Can it possible to find out capital letter or small letters for a record in salesforce
Hi,
I have one object as Policy, in that object having policy number field.
in that field upper case and lower case letters are there.So here i want to know how many policy numbers having small letters.
Is it possible in salesforce ?
I have one object as Policy, in that object having policy number field.
in that field upper case and lower case letters are there.So here i want to know how many policy numbers having small letters.
Is it possible in salesforce ?
You could use Regex you to do this. The syntax is quite easy:
/[a-z]/g
It will match any lowercase letters globally in the string.
For example:
https://regex101.com/r/tN4lU7/1
You could also use the methods provided in the String class. They are:
- isAllLowerCase()
- isAllUpperCase()
Hope this helps!Returns true if all characters in the current String are lowercase; otherwise, returns false.
Returns true if all characters in the current String are uppercase; otherwise, returns false.