extractEmail ดึงที่อยู่อีเมลจากข้อความหรือข้อมูล ฟังก์ชันนี้มีประโยชน์ในการสกัด email addresses จากข้อความยาว ตัวอักษร หรือ log files
=extractEmail(text)
=extractEmail(text)
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| text | string | Yes | ข้อความที่มี email address อยู่ข่างใน |
ดึง email addresses จากข้อความยาว เช่น จากความเห็น หรือเอกสาร
ดึก email ที่มีปัญหาจาก error logs เพื่อติดต่อผู้ใช้
{{ extractEmail('Contact me at john@example.com for details') }}={{ extractEmail('Contact me at john@example.com for details') }}
john@example.com
{{ extractEmail($json.description) }}={{ extractEmail($json.description) }}
support@company.com
{{ extractEmail($json.contactInfo).split(',') }}={{ extractEmail($json.contactInfo).split(',') }}
[email1@example.com, email2@example.com]
ฟังก์ชันแบบมาตรฐานจะดึก email ตัวแรก หากต้องการทั้งหมด ให้ใช้ regex หรือ split method
ฟังก์ชันจะพยายามค้นหา email format มาตรฐาน หากไม่พบ จะคืนค่า null หรือ undefined
ใช้เมื่อต้องดึก email addresses จากข้อความ เช่นจากความเห็น, ข้อความ, หรือ log files
extractEmail เป็นฟังก์ชันที่ดึงที่อยู่อีเมลจากข้อความ ใช้เมื่อมีข้อมูลที่มี email address อยู่ในส่วนของข้อความและต้องการแยกมันออก