I have the following code:
$str_val = \"L(ine 1( L(ine 2) Line 3 Line 4)\"; $regex = \'/\\(([^\\)]*?)\\)/i\'; preg_match($regex, $str_val, $match
Try this regular expression:
\([^\)]*\)
The first match is what you need.