-
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
Bar Charts in Salesforce | Visualforce Developer Guide
The bar chart is a linear data series chart accessible in Visualforce. The linear series chart is a chart plotted against a standard rectangular system.…
Why Do Businesses Need Salesforce in 2021?
As a cloud-based CRM platform, Salesforce provides businesses with the means to manage their events and tasks and track customer cases. It also allows the…
The Essential Guide for Salesforce Testing
Organizations in the modern business environment rely on robust customer relationship management (CRM) systems to efficiently manage and streamline their sales processes. Salesforce, a leading…
Popular Salesforce Videos
Using Salesforce as a Sales Rep | Salesforce Tutorials
Sales Rep Overview is for reps that own opportunities and carry a quota. Gain instant insight into your business over any time frame. Track won…
What is CPQ (in Salesforce)?
This videdo explains Configure Price Quote (CPQ) in Salesforce by dividing this topic into 4 basic points, which are: 1. What is the basic sales…
Setting Up Service Territories and Operating Hours | Salesforce Webinar
Scale your business and ensure optimized performance by setting up service territories in Salesforce Field Service. In Salesforce Field Service, operating hours represent service territory…