function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Administrator 167Administrator 167 

How to write an INCLUDE and EXCLUDE REGEX ?

Hello,

With this Regex I'm trying to both:
- include max 30 comma separated string
- yet exclude break line and new line at string end

Has somebody an idea how it should be written ?

REGEX(^(?!\r\n)[^,]+(?:,[^,]+){0,30}$)