Extraer URLs
extract-urlsExtrae URLs http(s) y www. de un texto, quitando la puntuación final. Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: listar los enlaces e imágenes de un documento Markdown (markdown-links-extract). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Finds http(s) and www. URLs in text, trimming trailing punctuation and unbalanced closing parentheses. When: text has to be transformed, compared or measured exactly instead of approximated. Not for: listing the links and images of a Markdown document (markdown-links-extract). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text (string; required). | |
| unique | No | Remove duplicates (boolean; optional; default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| items | No | any JSON value |