-
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
What are the Development Tools in Salesforce?
As the world's largest CRM, Salesforce offers many helpful tools. These Salesforce development tools have been helping and reshaping enterprises of all kinds and categories…
Best Practices to Be Followed As a Salesforce Business Analyst
Salesforce Business Analysts are liable for improving the Salesforce occurrence and its maintenance. The Salesforce Business Analyst is responsible for plan, lead, and conduct gatherings…
Why is The Demand For a Salesforce Developer Growing Day by Day?
There is no denying that Salesforce is the world's premier customer relationship management (CRM) solution. Salesforce currently controls more than 19% of the CRM market,…
Popular Salesforce Videos
Salesforce CPQ Product Bundles
Salesforce CPQ product bundles. See how product bundles work with features and options. Also including an option constraint to prevent incorrect configuration. Watch this video…
Salesforce Winter Release '22 Highlights
Watch this webinar video to learn about new and improved features and how you can take full advantage of the latest enhancements. Let us know…
Salesforce App Builder Training | Salesforce App Builder Tutorial | Intellipaat
In this salesforce app builder tutorial, you will learn what is Salesforce CRM, a Sales rep in Salesforce, various user settings in Salesforce, and how…