I want check that a strings does not contain value 0. That is, strings like
0 , 00 ,00.00
are not allowed, but it should allow field like
10.00 , 11.01, 0.12
In short I want to check currency string . It should not enter 0 value.
please suggest me regular expression for this.
I tried "^0$" but it failed on 10 or 10.90 something like that ..
I appears that you want to match all fields that contain at least one zero. If so, you can use pretty much the simplest regex possible:
Update: so, you want to reject anything that only contains zeroes (but it might have spaces, commas, and periods as well. Ok, this will fail to match any “only zero” string: