로드 스크립트에는 조직의 직원에게 보낸 여러 회사 서신의 텍스트가 포함되어 있습니다. 각 서신을 보낸 회사 이름과 이메일 주소 외에 PII(개인 식별 정보)의 데이터가 이미 삭제되었습니다. 각 메시지의 본문은 연속된 단일 문자열로 축소되었습니다. 즉, 모든 서식 및 줄 바꿈 문자가 제거되었습니다.
요구 사항:
발신자임을 나타내는 이메일 주소 TestCompanyNameCorrespondence@test.com이 포함된 문자열과 이 주소에 대한 구체적인 소개가 포함된 메시지를 식별합니다.
소개에 식별할 유연성이 있기를 원하지만, 몇 가지 명확한 제한 사항도 필요합니다. 소개 Sender 및 Sent by은 모두 유효한 것으로 간주됩니다. 이 목표를 달성하려면 정규식 패턴을 사용할 수 있습니다.
Correspondences:
Load * Inline [
ID|MessageBody
1|Sent by-- TestCompanyNameCorrespondence@test.com Good morning TestCompanyName team! I hope you are all well. I am just reaching out about the fabulous benefits package we launched just year. Our goal is to take a poll of what you all think. Can you please rate the new options from 1-10 in a response to this email, by this Tuesday? Thank you!
2|Sender: TestCompanyNameIT@test.com Did you know you can access our IT portal anytime, from any of your company devices? It's true! Reach out to your team lead to learn more.
3|Sender: TESTCOMPANYNAMECORRESPONDENCE@test.COM URGENT: This is a message to inform employees of an ongoing issue with our local branch. The branch will be closed until further notice. Thank you
4|Sender: TestCompanyNameVolunteering@test.com Dear team! We are looking for volunteers to help with this year's charity event! We need 40 volunteers to help with the event. If you are interested, please send an email to your direct supervisor. Thanks, TestCompanyName team members, for helping make the world a better place!
5|Sender is TestCompanyNameCorrespondence@test.com Hi folks, it's time to announce the annual TestCompanyName staff party! The party will be taking place at the office this year. Please make sure to RSVP, and we hope to see you there! Sincerely, the TestCompanyName management team
] (delimiter is |);
측정값 속성에서 합계 함수를 Sum으로 설정합니다. 이렇게 하면 표의 맨 위에 있는 합계 행이 구성되어 계산에 기여하는 총 레코드 수를 계산합니다.
이 측정값은 메시지 콘텐츠 내에서 지정된 정규식 패턴과 일치하는 항목의 수를 계산합니다. 정규식 패턴에서 .*는 줄 바꿈 문자를 제외한 모든 문자를 나타냅니다. 이 패턴은 이메일 주소가 소개되는 방식의 변화도 설명합니다. Sender 및 Sent by은 모두 유효한 일치입니다. 함수의 CountRegExI() 변형은 대/소문자를 구분하지 않는 검색을 보장합니다.
Sent by-- TestCompanyNameCorrespondence@test.com Good morning TestCompanyName team! I hope you are all well. I am just reaching out about the fabulous benefits package we launched just year. Our goal is to take a poll of what you all think. Can you please rate the new options from 1-10 in a response to this email, by this Tuesday? Thank you!
1
2
Sender: TestCompanyNameIT@test.com Did you know you can access our IT portal anytime, from any of your company devices? It's true! Reach out to your team lead to learn more.
0
3
Sender: TESTCOMPANYNAMECORRESPONDENCE@TEST.COM URGENT: This is a message to inform employees of an ongoing issue with our local branch. The branch will be closed until further notice. Thank you
1
4
Sender: TestCompanyNameVolunteering@test.com Dear team! We are looking for volunteers to help with this year's charity event! We need 40 volunteers to help with the event. If you are interested, please send an email to your direct supervisor. Thanks, TestCompanyName team members, for helping make the world a better place!
0
5
Sender is TestCompanyNameCorrespondence@test.com Hi folks, it's time to announce the annual TestCompanyName staff party! The party will be taking place at the office this year. Please make sure to RSVP, and we hope to see you there! Sincerely, the TestCompanyName management team
1
5개 메시지 중에서 지정된 정규식 패턴과 일치하는 메시지는 3개입니다. 각 메시지에는 일치하는 항목이 하나씩 포함되어 있습니다.
정보 메모MatchRegEx() 함수는 이러한 유형의 유효성 검사 사용 사례에도 유용합니다.