- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 06:57 AM
Hi All ,
I need to create regex to restrict the value from 0 to 30.0 . but it should not allow more than 30.1 . that field is numeric value
Thanks,
Chandan
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:41 AM - edited 12-08-2023 07:52 AM
As said, before... please share your script if it's not working. This regex is correct for what you asked Only allow for values 0 until (and including) 39.0
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:09 AM
Hi,
Test this regex:
^(?:30(\.0)?|2?[0-9](\.[0-9])?|1?[0-9](\.[0-9])?|0?(\.[0-9])?)$
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:13 AM
form is not saving in the on load client scripts, by mistake i have given 0 to 30.1 but it should be 0 to 39.0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:17 AM
Then the regex is
/^(?:39(\.0)?|2?[0-9](\.[0-9])?|1?[0-9](\.[0-9])?|0?(\.[0-9])?)$/
If your script is not saving, please share the complete script.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:21 AM
from 30 to 39 , it is not allowing