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

  • 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

Salesforce Marketing Cloud Integration with Google Analytics 360

Redefining the future of Marketing – Salesforce Marketing Cloud Integration with Google Analytics 360

Blog in

Know your customers better and make smarter, insight-based marketing decisions through Salesforce’s massive customer relationship management platform twinned with Google Analytics 360’s market-leading digital analytics solution…

Popular Salesforce Videos