-
Is there any way to validate UTF-8 in regex?
I have basic validation rules setup for name fields:
NOT(REGEX(FirstName, "^[A-Za-z\\. '-]+$"))
Want to allow only letters, periods, spaces, hyphens and apostrophes in the name field. The problem with this is that it does not allow accented characters (graphemes). I've tried some simplified ideas based on a regex tutorial and the Java Docs Salesforce links to, but they do not work:
NOT( REGEX( FirstName , "\\P{M}\\p{M}") )
NOT( REGEX( FirstName , "\\p{Alpha}") )
NOT( REGEX( FirstName , "\\X") )
Has anybody else run into this problem? How do you validate names with accent marks?
Log In to reply.
Popular Salesforce Blogs
Salesforce REST API | HTTP and Callout Basics | All You Need to Know
HTTP and Callout Basics REST callouts depend on HTTP. To see how callouts work, it's useful to comprehend a couple of things about HTTP. Each…
Develop in Production: Insane or Inspired?
Accelerating implementation We all know the benefits of accelerating and streamlining the release cycle; the business is more agile and reduced development effort. But there…
Popular Salesforce Videos
Non Technical but Want to Build Career in Salesforce?
In this video Shrey gave the answer of the following questions: 1. What is the next step after doing Certification in Salesforce Administrator? 2. How…
Salesforce Health Cloud
Salesforce Health Cloud is a health IT CRM system that incorporates doctor-patient relationship and record management services. Through Private Communities, patients can view care plans,…
Data Access for Apex, Visualforce, and Lightning
Apex is a development platform for building software as a service (SaaS) applications on top of Salesforce.com's customer relationship management (CRM) functionality. Apex allows developers…