+ Start a Discussion
Vivek S 42Vivek S 42 

Invalid Regex Runtime Exceed for


I have a validation rule to throw error when no. of lines in address more than 4, 
and another one for each line not to have more than 35 char.

both are working fine except in one case, where all the 4 lines with 35 char is trying to save. and i am getting the error as 
 Invalid (Regular expression runtime exceeded for: (.*\r\n.*){4,})

where as (.*\r\n.*){4,} is from my validation rule. pls help me out. 

validation rule for no. of lines (regex( MailingStreet , "(.*\r\n.*){4,}")
SandhyaSandhya (Salesforce Developers) 

Please refer below links for similar discussion.

Hope this helps you!

If this helps you,mark it as solved.

Thanks and Regards