I want to extract all the numbers after the `company_id:` part and store in a variable. My string looks the following.

```
String company ="{\"company_id\":4100\"data\" \"drm_user_id\":572901936637129135\"company_id\":3070,\"data\",\"company_id\":4061,\"data\"}"

```

In this case, the regex would extract numbers **4100**, **3070** and **4061**. I have many other numbers on my string, I just did not include them to save space. The numbers I want will be the only ones with 4 digits and will always come after the `company_id:` part. I tried the following

```
Pattern pattern = Pattern.compile("(\\d{4})");
Matcher matcher = pattern.matcher(company);

```

However, that only returns the first digit and not the other two.