I have the following string and i need to get the content inside the string.

I have tried the following Regex . But it comes with the outer paranthesis.

Input string :

```
           Test (1001,Sunday)

```

Regex Pattern

```
          Regex : (([^,]+),([^,)]+)) 
          Output : (1001

```

But I require output like the following

```
         match[0]=1001 , match[1] = sunday.

```

I also tried the following patterns but ended up with build warnings.

```
          (Test \(([^)]+)\)) : 

```

Due to escape sequence i was not able to build it without warnings.

The above Regex works fine for me but i get compilation warnings

[![enter image description here](https://i.stack.imgur.com/SJM2Z.png)](https://i.stack.imgur.com/SJM2Z.png)