i'm trying to split a dot notated string using splitBy in dataweave 2.0, using a simple regex to avoid splitting escaped strings, testing online the regex works as expected but the dataweave function outputs a different result.
'root.sources.data.`jenkins.branch.BranchSource`.source.traits' splitBy(/[^\.`]+|"([^`]*)"|`([^`]*)`/)
Output:
["", ".", ".", ".", ".", "." ]
Expected:
["root", "sources", "data", "`jenkins.branch.BranchSource`", "source, "traits"]