Good morning, I need a little of your help. I need to split the text using REGEX, but to omit the content in parentheses
preg_match_all('/\((?:[^()]|(?R))+\)|\'[^\']*\'|[^(),]+/', $input_lines, $output_array);
I have this string:
Test A, Test B, Test C (data1, data1)
And pregmatch we do this:
0   =>  Test A
1   =>   Test B
2   =>   Test C 
3   =>  (data1, data1)
How do I achieve this result?
0   =>  Test A
1   =>  Test B
2   =>  Test C (data1, data1)
I need to ignore the content in parentheses and separate only the rest.
Thank you in advance for any help.
EDIT
This aventually resolved my situation. I tried to use preg split.
preg_split('/,(?![^(]*\)) /', $input_line);
 
    