Regex to match everything between the first and last occurrence of two distinct characters

前端 未结 3 560
闹比i
闹比i 2020-12-18 10:10

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         


        
3条回答
提交回复
热议问题