Hi, I'm not an expert on regular expressions, however I know that they can replace a huge amount of complex code.
I'm using a Restrict bead with this pattern [^0-9] to only allow numbers and works like a charm for only integers text input. However I now need a pattern to only accept numbers BUT also one single dot (.) after a number and one single optional minus (-) as the first character. I came up with this solution that works in a test tool: /^\-?\d*\.?\d*$/ Here the test tool: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_regexp_not_0-9 (just replace the pattern). I can't use this pattern directly on Restrict bead. Seems that the Restrict bead is based on the opposite but since I'm not a regular expression expert, I'm not sure. Can anyone please convert my regular expression pattern /^\-?\d*\.?\d*$/ to be compatible with the Restrict bead ? Thank you in advance.