ดึงข้อความที่อยู่ระหว่างตัวคั่น 2 ตัว
=Text.BetweenDelimiters(text as text, startDelimiter as text, endDelimiter as text, optional startIndex as any, optional endIndex as any) as any
=Text.BetweenDelimiters(text as text, startDelimiter as text, endDelimiter as text, optional startIndex as any, optional endIndex as any) as any
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| text | text | Yes | ข้อความหลัก | |
| startDelimiter | text | Yes | ตัวคั่นเริ่มต้น | |
| endDelimiter | text | Yes | ตัวคั่นสิ้นสุด |
Text.BetweenDelimiters("ID(123)Ref", "(", ")")=Text.BetweenDelimiters("ID(123)Ref", "(", ")")
"123"
ฟังก์ชัน Text.BetweenDelimiters ใน Power Query ใช้สำหรับดึงข้อความที่อยู่ระหว่างตัวคั่น 2 ตัว