Forum Discussion
Anonymous
3 years agoNot applicable
How to replace/remove text between delimiters when there are multiple delimiters ?
Hello, How to replace/remove text between delimiters when there are multiple delimiters ? Case : value on the cell : aaa bbb ccc eee aaa bbb ccc eee aaa bbb ccc xxx eee...
wdx223_Daniel
3 years agoCommunity Champion
NewStep= Table.TransformColumns(Source,{"Colonne 1",each let a=Table.FromList(Splitter.SplitTextByWhitespace()(_),each {_}) in Text.Combine(Table.Combine(Table.Group(a,"Column1",{"n",each Table.RemoveLastN(_,each [Column1]<>"bbb")},0,(x,y)=>Byte.From(y="xxx"))[n])[Column1],"#(lf)")})
Anonymous
3 years agoNot applicable
Hello Daniel,
I tested but only the first occurrence is removed, and in the next pattern it's the end delimiter that is removed.
- Anonymous3 years agoNot applicable
rather, everything after the start delimiter is removed with the second occurence.