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 

What is wrong with this REGEX ?

Hello everybody,

In a Visualflow, I need the user to enter maximum 6 comma separated server names, with no comma after the 6th server name.

The following REGEX is working when I test it with online regular expression, but in the flow I get : "missing '=' error"

REGEX({!X_serverNames},([A-Za-z1-9_]{1,},){5}([A-Za-z1-9_]{1,}))

Could you please tell me what is wrong with it ?

Thank you very much

 
VinayVinay (Salesforce Developers) 
Hi,

Try this
 
REGEX({!X_serverNames},([A-Za-z1-9_]{1,},){5}([A-Za-z1-9_]{1,},))

Thanks,
Vinay Kumar​​​​​​