I am not good with regular expressions, so I need a little bit of help.
I am trying to retrieve text like function inside a string like this:

```
$str_var = " i do not need this datavar(i need this),  i do not need this datavar(and also this),  and so on";        
preg_match('#\((.*?)\)#', $str_var, $match);
print_r($match)

```

I would like to have:

```
arr value 1 = datavar(i need this)
arr value 2 = datavar(and also this)

```

So far I am able to retrieve the text inside "this is it" and "this is it 2" but I need to retrieve the function name and the content with the pharentesis as well like: "datavar(i need this)" and "datavar(and also this)"

Any ideas