-
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
Mistakes To Avoid During Salesforce Data Migration
Data is the foundation on which all CRMs are built: start with poor data, you’ll get poor returns. That’s why data migration is such a…
What is a Flow in Salesforce? | All You Need to Know
A flow is a tool that automates complications of business processes in Salesforce. In a few words, it fetches data and then Proceeds with that…
An Ulitmate Guide: Marketing Cloud In Salesforce And Its Benefits
As a marketer, do you often wish for an automated platform to streamline activities like lead generation, campaign management, handling marketing tasks, and tracking? Salesforce…
Popular Salesforce Videos
Data Import: Prepare your Data for Import | Salesforce
This short video walks you through how to clean up your import files in preparation for getting your data into Salesforce. We'll walk you through…
Salesforce Consultant Certifications - Large Data and Transaction Volumes
As you already aware, expertise in Salesforce is in huge demand. The Salesforce Certifications are industry-recognized and are a proof of your skill/expertise in Salesforce.…
How to Automate Business Processes in Salesforce CRM | Salesforce Flow Explained
Want to streamline your business processes without diving into complex coding? In this video, Kirill, an AQA engineer and certified Process Automation Professional at ENWAY,…