• Rehana Wajahat Hussain
  • NEWBIE
  • 0 Points
  • Member since 2019
  • Associate Software Engineer
  • FIDELITY INVESTMENTS IRELAND LIMITED

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi!

I would love to get some help with this validation rule: 

I want this Comments field to include Special characters:  . , : ? ; % ( ) & # ' " * - _ 
My Validation formula works for all the special characters except \ backslash and hyphen represents the range in order to consider it as the literal value I need to escape it using two back slashes.


AND (
NOT(ISBLANK( Comments )),
NOT(REGEX( Comments , "[a-zA-Z0-9.,:?;%/()&#\'!\"\"\\-_* ]+")),
)