-
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
Building Stronger Client Relationships: Salesforce CRM in Insurance Brokerage
In the dynamic landscape of insurance brokerage, building client relationships is needed. Brokers face the challenges of managing a substantial amount of client information and…
Salesforce Web To Lead - All You Need to Know About
What is Web to Lead? Salesforce web to lead is a tool that allows you to collect leads from your website and save them in…
Salesforce Analytics Cloud and Integration Cloud | The Ultimate Guide
Salesforce Analytics Cloud, also known as Einstein Analytics, is a powerful data analytics tool that helps businesses make better decisions by providing them with real-time…
Popular Salesforce Videos
Salesforce Deployment Using Workbench | Salesforce Workbench Tutorial
Salesforce Deployment using Workbench. In this video, the following points will be covered - 1. Introduction Get a brief introduction about the Workbench tool. 2.…
Salesforce Partner Program 2020: Everything You Need to Know!
Embarking on this new program year, PY21, Salesforce will be implementing some enhancements to its Partner program to ensure the central focus on customer success…
Get Started with Process Builder
Get started with process builder -- and replace that ridiculously and ever-growing list of workflow rules with easier to understand, more extensible processes. This video…