Text.SplitAny
ส่งกลับรายการค่าข้อความที่แยกบนอักขระใดๆ ในตัวคั่น
Syntax
Text.SplitAny(
text as text,
separators as text
) as list
Remarks
ส่งคืนรายการค่าข้อความที่เป็นผลลัพธ์จากการแยกค่าข้อความตามอักขระใดๆ ที่ระบุในตัวคั่น
text: ค่าข้อความ ที่จะแยกseparators: อักขระตัวคั่นที่ใช้ในการแยกข้อความ
Examples
Example #1
สร้างรายการจากข้อความที่กำหนดโดยใช้อักขระตัวคั่นที่ระบุ
Text.SplitAny("Name|Customer ID|Purchase|Month-Day-Year", "|-")
Result:
{
"Name",
"Customer ID",
"Purchase",
"Month",
"Day",
"Year"
}
Category
Text.Transformations