I want to parse a variable declaration statement and get the variable name. I am doing the below

```
String var = "private   String   ipaddress;";

```

i m using the regex pattern below to match the above string

```
.*private\\s+([a-z]*)\\s+([a-z0-9_]*);

```

It does not work. It says no match found Can any one please help.