Introduction
Salesforce provides new string methods to determine what type of characters contains in a particular string by using some of the below methods.
Methods to Determine Character Types
Alpha
- String str = 'AlphaOnly';
- System.assertEquals(true, str.isAlpha());
The above string method will return true, if the string contain only characters.
isAlphaSpace
- String str = 'AlphaOnly Space';
- System.assertEquals(true, str.isAlphaSpace());
The above string method will return true, if the string contain alphabet and white spaces.
isAlphaNumeric
- String str = 'AlphaNumeric123';
- System.assertEquals(true, str.isAlphaNumeric());
The above string method will return true, if the string contain alphabet, numbers.
isAlphanumericSpace
- String str = 'Alpha Numeric123';
- System.assertEquals(true, str.isAlphanumericSpace());
The above string method will return true, if the string contain alphabet, numbers and white spaces.
isNumeric
- String str = '432';
- System.assertEquals(true, str.isNumeric());
The above string method will return true, if the string contain numbers only.
isNumericSpace
- String str = '432 ';
- System.assertEquals(true, str.isNumericSpace());
The above string method will return true, if the string contain numbers with spaces.
isWhitespace
- String str = ' ';
- System.assertEquals(true, str.isWhitespace());
The above string method will return true, if the string contain only white spaces.
Thanks for sharing this information. Would be very helpful in the exam. I took Salesforce Developer Certification course from E-Learnify.in. They were really helpful in clearing my doubts.
ReplyDeletethank you for sharing such a unique information.very glad to leave a comment here.we appriciate your support.one of the recommanded blog in Sales force
ReplyDeleteSales force online training in hyderabad
Sales force online training
Wow nice blog very great information you given thanks for sharing. Know more about our salesforce Admin & Developer Training
ReplyDeleteI really appreciate for your efforts to make things easy to understand. I was really many students struggling to understand certain concepts but you made it clear and help me bring back my confidence.
ReplyDeleteHadoop online training
Hadoop online training in hyderabad
Hadoop online training in usa
Hadoop training in hyderabad
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.
ReplyDeleteDigital Marketing Company in India
Hai Author Good Information that i found here,do not stop sharing and Please keep updating us..... Thanks
ReplyDeleteHiiii...Thank you so much for sharing Great information....Nice post....Keep move on....
ReplyDeleteBest Salesforce Training in Hyderabad
Thank you for sharing this useful article with us. This blog is a very helpful to me in future. Keep sharing informative articles with us.
ReplyDeletehttps://www.ahmedabadcomputereducation.com/course/laravel-training-course/
Thank you for sharing this useful article. This blog is a very helpful to me. Keep sharing informative articles with us.
ReplyDeletehttps://www.ahmedabadcomputereducation.com/course/ionic-training-course/
Great sources for knowledge. Thank you for sharing this helpful article. It is very useful for me.
ReplyDeletehttps://www.ahmedabadcomputereducation.com/course/laravel-training-course/
Awesome content for reading as well as knowledge. Thank you for sharing this informative article with us.
ReplyDeletehttps://www.sdsfin.in/about-us/
Out of 10 every 8 people in the world has been suffered from severe attack of back pain during their life time. Back pain is a symptoms rather than disease. Doctor finds out the cause of back pain and treats accordingly. Back pain is pain felt in the back that usually originates from the muscles, nerves, bones, joints or other structures in the spine.
ReplyDeleteWHAT ARE CAUSES OF BACK PAIN?
There are many causes of back pain. Long standing degeneration (wearing away) of the vertebrae and the intervertebral disc is the primary cause behind this disorder.
Back Pain Treatment in Ahmedabad
Thank You for sharing this informative article.
ReplyDeletehttps://web30india.com/
ReplyDeleteI like your post very much. It is very much useful for my research. I hope you to share more info about this. Keep posting.
nice post.salesforce training
ReplyDeletesalesforce online training
salesforce online course
Android Mobile App Development in Ahmedabad
ReplyDeleteWeb 3.0 India is the most trusted Web3 Blockchain Development and NFT Development Company in USA. We also provides ICO, STO development for cryptocurrency.
https://web30india.com/
This blog is very informative. For more
ReplyDeleteinformation visit: https://www.hirededicatedresources.com/
QUICK EASY EMERGENCY URGENT LOANS LOAN OFFER EVERYONE APPLY NOW +918929509036 financialserviceoffer876@gmail.com Dr. James Eric
ReplyDelete