-
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

The significance of Salesforce and Facebook Integration
Facebook is a leading social networking app in today’s market scenario for doing tasks like share updates, photos or videos with friends and community. Salesforce…

Use of Database.Statefull in Batch Apex when aggregating values for large data
We often came across situations in apex where we are required to calculate aggregate data but we have a limitation of 50000 records at a…

Salesforce Outlook Integration: The Stepping Stone To Boost Your Sales Productivity
Communication has always been a crucial part of our life; without it, there is no way we can share ideas and might impact collaboration among…
Popular Salesforce Videos
How To Change Opportunity Stages In Salesforce
If you're finding that you need to change the stages of opportunity in Salesforce, don't worry, it's easy to do. In this video, Gary Smith…
Salesforce Integration Tutorial | Integrate Salesforce with Apps | Salesforce Training
This Salesforce Integration Tutorial video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…
Use Salesforce CMS to Manage and Publish Content for Experience Cloud Sites
Learn how Salesforce CMS helps you create, manage, and publish your content in Experience Cloud. With Salesforce CMS, you can also customize content for specific…