How to write a proper regular expression in groovy?
I wanted to create a pattern for my `matches` in groovy. The input should range from `0 to 100`, but accepts `decimal value`. I know that this is possible by using the `double` datatype, but as a requirement I need to set the datatype of this property as a `String` that's why I need to set up the correct pattern of the matches for the `String` for it to work properly. Possible input:

    1) 1 - valid
    2) 1.5301 - valid
    3) 99.6732 - valid
    4) 99.1 - valid
    5) 100.1 - invalid
    6) 100 - valid

Thank you so much!
How to write a proper regular expression in groovy?
===

I wanted to create a pattern for my `matches` in groovy. The input should range from `0 to 100`, but accepts `decimal value`. I know that this is possible by using the `double` datatype, but as a requirement I need to set the datatype of this property as a `String` that's why I need to set up the correct pattern of the matches for the `String` for it to work properly. Possible input:

    1) 1 - valid
    2) 1.5301 - valid
    3) 99.6732 - valid
    4) 99.1 - valid
    5) 100.1 - invalid
    6) 100 - valid

Thank you so much!