Regexp only allow up to two decimals

So I want to use this regexp: ^(0[.,]\d{1,2}|[1-9]\d{0,5}[.,]\d{1,2}|\d{1,})$ (Only allows a user to type up to two decimal(could be the comma separator or the period separator) numbers and any number before the seperator)
Ex: 1234; 1234,12; 0.12; 0,5; 12

And it works on https://regex101.com/r/Zii1Sf/1, however not with flutterflow's custom regexp, should I do this differently with flutterflow?

3
2 replies