I need a regex that can validate the following:
Validate that there are no empty values or spaces
123|2.3|3.6
Validate that none of the numbers are negative
123|0.0|2.3
Validate that each number is 9 digits or less without counting digits after the decimal point
123|333333333.32|3.4
Here is my attempt:
^(?:[^|]+(?:\|[^|]+){0,2})?$
https://stackoverflow.com/questions/65894493/regular-expression-to-validate-number-pipes January 26, 2021 at 08:56AM
没有评论:
发表评论