I want to return the string of group 1 in this example, so I have a pattern like below. But it doesn't correct. Can anyone help me to write the pattern please?

```
    Pattern pattern = Pattern.compile("^(\\w+-\\d)(\\s+)(\\d+)$");

    String line = "list.txt-1   40";
    Matcher list = pattern.matcher(line);

    if(list.matches()) {
        System.out.println("match");
    } else {
        System.out.println("Nope");
    }

```