I have a task from which I need to extract values from a text that represent numerical values. However I am interested in extracting values that have at most 6 digits with decimal being optional.

For example, from the below text:

> 
> Total compensation for Mr. XYZ was $5,123,456 and other salary which was $650,000 in fiscal 2018, was determined to be approximately 8.78 times the median annual compensation for all of the firm's other employees, which was approximately $74,000. Some other salaries are 56000.
> 
> 
> 

I need to extract 

```
["650,000", "2018", "8.78", "74,000", "56000"] 

```

from this.

The regex I am using: 

`((\d{1,3})(?:,[0-9]{3}){0,1}|(\d{1,6}))(\.\d{1,2})?`  

It is correctly identifying 650,000 and 74,000 but doesn't identify others correctly.

I found [this](https://www.regextester.com/103979) 7 digit money regex and worked around it to make one for 6 digit but wasn't successful. How do I correct my regex?