Regular expression to remove second couple of parenthesis (only when available)
- by Jonathan
Hi, I have something like this:
$arr[] = 'Seto Hakashima'
$arr[] = 'Anna (segment "Yvan Attal") (as Robin Wright Penn)'
$arr[] = 'Sara (segment "Yvan Attal")'
I need to remove the the second couple of parenthesis (only when there is a second couple), and get this:
$arr[] = 'Seto Hakashima'
$arr[] = 'Anna (segment "Yvan Attal")'
$arr[] = 'Sara (segment "Yvan Attal")'
Thanks!