I’m trying to implement a simple numbers validation. The field will only accept whole positive numbers. Not even a (dot) is allowed. I’m using this regex (^(0|[1-9][0-9]*)$/) and it works fine on browser and other online regex tester but when running it on ionic serve and on an android device it doesn’t behave as expected.
edit: not sure if this is the correct category, please inform me if not and will immediately change it. ty