You need to sign in to do that
Don't have an account?

Invalid Regex Runtime Exceed for
Hi,
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,}")
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,}")
Please refer below links for similar discussion.
http://salesforce.stackexchange.com/questions/148199/need-help-in-using-regular-expressions-in-validation-rules
http://salesforce.stackexchange.com/questions/76854/validation-rule-to-count-words
Hope this helps you!
If this helps you,mark it as solved.
Thanks and Regards
Sandhya