I have a string which i need to split in javascript var str = 'Lenovo Essential G500s (59-388254) Laptop (3rd Gen Ci5/ 8GB/ 1TB/ DOS/ 2GB Graph) (Free carry bag) (Black)';
I need to retrieve just 'Lenovo Essential G500s (59-388254) Laptop' i.e, i should be able to split the string after the second occurrence of '(' character.
I have tried using the .split() function, but I am not able to specify the position. Please help.