Filtrar líneas
lines-filterConserva (o elimina) líneas que contienen una subcadena. Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: aplicar una expresión regular de JavaScript a un texto y listar cada coincidencia con posición y grupos (regex-test). 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: Keeps (or removes) lines containing a substring, case-insensitive optional. Plain substring match only; patterns are handled by regex-test. When: text has to be transformed, compared or measured exactly instead of approximated. Not for: trying a JavaScript regex on a text and listing each match with its position and groups (regex-test). 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 with one item per line (string; required). | |
| invert | No | Remove matching lines instead (boolean; optional; default false). | |
| contains | Yes | Substring (string; required; at least 1 chars; up to 1000 chars). | |
| case_insensitive | No | Ignore case (boolean; optional; default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| lines | No |