Have a look at this regular expression:
blue part => starts with 0-9, 1, 2 or 3 times
brown part => followed by a comma and 0-9, zero or more times
green part => followed by a dot and 0-9, 2 times
Depending on the command you use the above regexp with, you might need to escape some parts (telling us you use bash isn't enough info).