收藏Laura Gil (Privat) 发布于 Salesforce Developer/ Admin/ Consultant (原提问者 Laura Gil)2021年9月14日 13:06Laura GilCan somebody please explain me what this REGEX validation means?Hi all,I am trying to build a validation rule with REGEX for the field Phone. The validation rule should check the following:Allow: NumbersAllow: Characters such as '+', spaces, parenthesis '(', ')', '/', '-'Allow: Character '+' should be only at the beginning of the phone number not in the middle or at the endSo, just searching pages with REGEX tutorials but unfortunately I could not find any appropriate in order to also decrypt the following expression literally: NOT(REGEX(Phone,"(\\D?[0-9]{3}\\D?)[\\s][0-9]{3}-[0-9]{4}")) No idea what do the following do?: \\D? (at the beginning and at the end){3}\\s{4}I would appreciate if experts in REGEX could give me some guidance here. #REGEX #Salesforce Developer #Sales Cloud #Service Cloud #Nonprofit #Automation #Integration显示更多添加评论撰写评论...粗体斜体下划线删除线项目符号列表编号列表添加链接代码块插入图像附加文件链接 URL取消保存0/9000回复
Laura GilCan somebody please explain me what this REGEX validation means?Hi all,I am trying to build a validation rule with REGEX for the field Phone. The validation rule should check the following:Allow: NumbersAllow: Characters such as '+', spaces, parenthesis '(', ')', '/', '-'Allow: Character '+' should be only at the beginning of the phone number not in the middle or at the endSo, just searching pages with REGEX tutorials but unfortunately I could not find any appropriate in order to also decrypt the following expression literally: NOT(REGEX(Phone,"(\\D?[0-9]{3}\\D?)[\\s][0-9]{3}-[0-9]{4}")) No idea what do the following do?: \\D? (at the beginning and at the end){3}\\s{4}I would appreciate if experts in REGEX could give me some guidance here. #REGEX #Salesforce Developer #Sales Cloud #Service Cloud #Nonprofit #Automation #Integration显示更多