즐겨찾기Laura Gil (Privat) 님이 Salesforce Developer/ Admin/ Consultant에 글을 올렸습니다 (최초 질문자: Laura Gil)2021년 9월 14일 오후 1: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더 보기