How use regex to get a specific decimal

Hi everyone!

Im trying to create a regular expression that give me true:

- Number (decimal)

- Only two decimals

- the 2 decimals are obligatory (Examples: 1,00 /

                                                                    0,00 /

                                                                     5,10 /

                                                                    1357,78)

I created the follow validation "^[0-9]+,?[0-9]+?$", but I cannt validate correctly my number.

Thanks!

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data