---
url: /docs/api/core/functions/parseRefTextBounds.md
---
[**@kaiord/core**](../README.md)

***

[@kaiord/core](../README.md) / parseRefTextBounds

# Function: parseRefTextBounds()

> **parseRefTextBounds**(`refText`): `Bounds` | `undefined`

Defined in: [packages/core/src/domain/lab/ref-text.ts:16](https://github.com/pablo-albaladejo/kaiord/blob/3eacbe62ef72342d970523967cc5155b5935bb85/packages/core/src/domain/lab/ref-text.ts#L16)

Parse a printed reference range into numeric bounds. Recognizes
`"low-high"`, `"< high"`, and `"> low"` (with unicode dashes and
`≤ / ≥`). Returns `undefined` for text that carries no numeric bounds
(e.g. `"negativo"`), so the caller can flag the value as `"unknown"`.

## Parameters

### refText

`string`

## Returns

`Bounds` | `undefined`
