Possible Duplicate:
how to split a string in js with some exceptions

For example if the string is:

abc&def&ghi\&klm&nop

Required output is array of string

['abc', 'def', 'ghi\&klm', 'nop]

Please suggest me the simplest solution.

Edit
Report