@parts=split/(?=\(|\))/; print for @parts; #### Using a ( ( modified yeast ( in PCNA promoter ) ) one-hybrid ( screen ) ) to identify potential ( SRF cofactors ) in cell #### for(/(?:^|\(|\))[^()]*/g) { print # or some processing }