Lab Order Results - ResultType.RANGE

Last updated: March 18, 2025

Regex Description

The regex in our documentation here as:

^([<>]=?\d*(\.\d+)?|(\d*(\.\d+)?-\d*(\.\d+)?))$

can be broken down into two main patterns:

  1. Comparisons using > or < (optionally with =) followed by a number:

    1. > or < for strict comparison

    2. >= or <= for inclusive comparison

    3. A number, which can be an integer or a decimal.

  2. A range of numbers separated by -:

    1. Two numbers, separated by a hyphen (-), forming a range.

    2. Each number can be an integer or a decimal.

    3. The format is min-max, meaning the first number must be smaller or equal to the second.

Examples of Possible Matching Values

Comparisons ([<>]=?\d*(\.\d+)?)

Expression

Description

>5

Greater than 5

>=10

Greater than or equal to 10

<8.3

Less than 8.3

<=3.14

Less than or equal to 3.14

>0

Greater than 0

>=0.5

Greater than or equal to 0.5

<12.345

Less than 12.345

<=100

Less than or equal to 100

Ranges (\d*(\.\d+)?-\d*(\.\d+)?)

Expression

Description

1-10

A range from 1 to 10 (inclusive)

0-100

A range from 0 to 100 (inclusive)

5.5-9.9

A range from 5.5 to 9.9

0.1-1.1

A range from 0.1 to 1.1

2.3-2.9

A range from 2.3 to 2.9

10-20

A range from 10 to 20

50.0-100.5

A range from 50.0 to 100.5

0-0.01

A range from 0 to 0.01