I would like to split a string where the delimiter is a pipe. But the pipe can be escaped and not splitted than.
example:
'aa|bb|cc'.split(/*??*/) // ['aa','bb','cc']
'aa\|aa|bb|cc|dd\|dd|ee'.split(/*??*/) // ['aa|aa', 'bb', 'cc', 'dd|dd', 'ee']
I try this, but it not work in javascript: (?<!\\)[\|]
match.