-
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
How to Choose the Right Salesforce Consultation Partner for Your Business?
Salesforce consultation partners help businesses establish CRMs and other tech tools, so they perform seamlessly. The primary role here is to collect and maintain databases…
Get A Salesforce 360° View Of Mobile Phone Activities
In today’s business world who does not have a mobile/cell phone? Whether it be a company-provided device or increasingly a BYOD (Bring Your Own Device)…
Automate to Upload Files on Amazon S3 Through Salesforce Apex
Amazon S3 is a web service offered by Amazon Web Services. Amazon S3 provides storage through web services interfaces. With the help of the following…
Popular Salesforce Videos
Salesforce Connections 2018 Keynote - Ch. 1: Corporate Positioning
Salesforce Connections 2018 Keynote – Ch. 1: Corporate Positioning Salesforce Connections 2018 Keynote – Ch. 2: Ticketmaster Is A Trailblazer Salesforce Connections 2018 Keynote –…
Salesforce User Stories in Action
Join this interactive session to understand how to write Salesforce-specific user stories, how to prioritize user stories, and learn some guidelines around story estimation. Topics:…
What is Record Types in Salesforce?
Record Types is where you have multiple page layouts to a specific profile. Watch this video to learn all about it.