如何在 Excel Power Query 上使用相同模式的 select 列

How to select columns with the same pattern on Excel Power Query

我有多个列,其名称以“- Hello”和“- Goodbye”结尾。所以我尝试使用 Table.SelectColumns 和某种正则表达式来 select 所有具有这种模式的列。

= Table.SelectColumns(Source, List.Select(Table.ColumnNames(Source),
                      each Text.EndsWith(_," - Goodbye") or Text.EndsWith(_," - Hello")))