-
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
Build Dynamic Customer Journey to salesforce
The term “customer journey” refers to the stages a customer goes through in his relationship with your Business. Since today brands are promoted using all…
G-Connector for Salesforce - Part 1
G-Connector for Salesforce It's a great tool or you can say an add-on that can help you to save your Salesforce Licenses. G-Connector is a…
Popular Salesforce Videos
What is Salesforce? | Why is it So Good ? | High Demand Skills
In this video, Technical Suneja explains what Salesforce is and why it is such a valuable skill set to have. He goes into detail about…
eShopSync for QuickBooks - A Salesforce QuickBooks Connector
One of the best Quickbooks Integration Solution With Salesforce. It efficiently sends QuickBooks data (Categories, Users, Products, and Orders) to Salesforce. For more information, please…
What are lookup filters in Salesforce?
In this video, we will leaarn about Lookup Filters in Salesforce by dividing this topic into 4 basic points, which are: 1. What is a…