On Apr 3, 2019, at 10:59 AM, Kirsten, Dirk <Dirk.Kirsten@senacor.com> wrote:for tumbling window $s in ("this", "is", "an", "example", "." , "this", "is", "another", "[", "example", ".", "]", "Another", "example", ".")start $a when fn:true()end $b previous $prev next $r when ($b = "]" and $prev = ".") or ($b = "." and $r != "]")return<s>{$s}</s>