-
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
Top 10 Salesforce Winter ’21 Features for Reimagining your Experience Cloud Journey
As is the norm with all feature update releases, Salesforce’s Winter ’21 release is packed with features that add fluidity to workflows and help businesses achieve…
A Beginner’s Guide to Salesforce CRM Managed Services: What You Need to Know
Businesses across the world are using Salesforce CRM as a strategic tool for their growth. The operations of the CRM are maintained by an IT…
5 Reasons why you Shouldn’t Ignore Salesforce Google Ads Integration
Salesforce Google Ads Integration Marketers set aside a sizeable amount of their total marketing budgets to Google Ads. However, there have been huge challenges with…
Popular Salesforce Videos
Salesforce Freelance Consulting - Course Preview
The Salesforce Freelance Consultant Course is finally live! Please comment and let me know what questions you have about whether this is a good fit…
Introduction to Lightning Web Components | Hello World | Key Concepts
In this video, We are going to learn the new concept/technology that Salesforce has recently introduced to us. Below is the agenda that we are…
Leads & Opportunities for Lightning Experience - Create and Convert Leads
Learning Objectives After completing this unit, you’ll be able to: Update a record’s stage or status using Path. Update records in the Kanban view. Use…