|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
当然,也可以全部扔给regex一起处理也就没那么多啰嗦事了
- let
- RE = (regex as text, str as text) => Web.Page("<script>var regex = " & regex & "; var str = """ & str & """; var res = str.split(regex).join('|'); document.write(res)</script>")[Data]{0}[Children]{0}[Children]{1}[Text]{0},
- Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("lY8xCsJAEEWvMqRSdM3MbjbJahWixEKDhGgQSRHIFoK4GPUynsU7eQUVLWymsJvPe//D7Hbe+mwhWZRQOneAlZ+PYRmTCY1PRqDx6iGvTCgSKDlFSi3RJ4EEzbH9yVxj1Zz3jjRDp1UmEElqwRmbpBCKYVWplJqnlGlw3SfNUjnPuK1/fRUEISXQy+zRds0BXkb/3QwUYsp0KA71gGMGo88vubtAYU/XfWfb0Xv3a+WP+23pWvs65dar6yc=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Final = _t]),
- #"Added Custom" = Table.AddColumn(Source, "Custom", each List.Skip(Text.Split(RE("/([::]|and|or) ?/gi", [Final]),"|"),1))
- in
- #"Added Custom"
复制代码 |
|