Values with regex

I have found another thread with the same problem and an example how to do it.