-
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 Nonprofit Cloud for Program Management
Every Nonprofit organization needs program management while planning, evaluating, and implementing an initiative for a cause. In this blog, we will go through the importance…
Transforming Field Service Operations by Leveraging Technology and The Salesforce Ecosystem
Field Service is a critical functional area for any industry that needs to physically move goods or personnel; essentially involving inventory management, fleet management, and…
Explain the Top 10 Reasons to Choose Salesforce for your Business
What is Salesforce? Salesforce is a cloud-based software company that offers tools to businesses to help them find more prospects, close more deals, and provide…
Popular Salesforce Videos
Salesforce Apex Rest API Integration
As you know salesforce is an online cloud solution, we might be required to integrate Salesforce with some other third party tool. We have released…
Salesforce Web-to-Case in under 5 Minutes
we'll see how to make a Salesforce Web-to-Case form quickly and easily, and how to embed it in our Word press website. This whole process…
How to Create an Object in Salesforce Lightning Experience?
Salesforce has always emphasized on declarative development since the beginning. The motto is that enterprise software should be easy to use for customers. With “clicks…