Activity Forums Salesforce® Discussions How to check String contains only white space characters in Apex ?

  • How to check String contains only white space characters in Apex ?

    Posted by Kirandeep on August 28, 2020 at 8:11 AM

    How to check String contains only white space characters in Apex ?

    Sumit kumar replied 6 years ago 4 Members · 3 Replies
  • 3 Replies
  • Anjali

    Member
    August 28, 2020 at 12:13 PM

    isAlphaSpace() : This string method will return true, if the string contain alphabet and white spaces.

  • [adinserter block='9']
  • Manish

    Member
    August 28, 2020 at 3:50 PM

    <div aria-level="3" role="heading">Apex String Methods to Determine Character Types
    <div>

    1. isAlpha() : This string method will return true, if the string contain only characters.
    2. isAlphaSpace() : This string method will return true, if the string contain alphabet and white spaces.
    3. isAlphanumeric() : This string method will return true, if the string contain alphabet, numbers.

    </div></div>

  • Sumit kumar

    Member
    August 30, 2020 at 4:09 PM

    isAlphaSpace() : This string method will return true, if the string contain alphabet and white spaces.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos