-- Leo's gemini proxy

-- Connecting to gmi.osiux.com:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=es_AR

`lines2regex` vs `regex2-check`


AUTHOR: Osiris Alejandro Gomez

EMAIL: osiux@osiux.com

DATE: 2023-05-23 22:45


<video id="video" controls width="720" height="406" autoplay loop background="#000000" preload>
  <source src="videos/lines2regex-vs-regex2check.mp4" type="video/mp4">
</video>

`lines2regex`


A diario, suelo necesitar crear una `regex` ^1[1] (*expresión regular*) a partir de una lista de elementos, por lo general que obtengo de procesar un archivo y filtrar algunas líneas, y para simplificar estar operatoria escribí el *script* `lines2regex` que me devuelve una *regex* `(a|b|c|d|e)` a partir de las siguientes líneas:


a
b
c
d
e

`regex2check`


De manera similar, cuando necesito convertir una *regex* a una lista de *checkbox* utilizo el *script* `regex2check`:


- [X] a
- [X] b
- [X] c
- [X] d
- [X] e

`vim` ready!


Ambos *scripts* soportan ser usados desde `vim` ^2[2] seleccionando las líneas directamente del texto tipeado y devolviendo el resultado y están disponibles en el *repo* `bin-bash-utils` ^3[3].


ChangeLog


`2023-05-23 23:31`[4] agregar video controls en `lines2regex` vs `regex2-check`

`2023-05-23 23:06`[5] agregar `lines2regex` vs `regex2-check`


1: https://regexr.com/

2: https://www.vim.gmi/

3: https://gitlab.com/osiux/bin-bash-utils/

4: https://gitlab.com/osiux/osiux.gitlab.io/-/commit/3f090b8f124a68774beefca491fa03df65ca23d6

5: https://gitlab.com/osiux/osiux.gitlab.io/-/commit/626361e3a3eaa82302b9c9b3fe290f32b20a7e10

-- Response ended

-- Page fetched on Thu May 2 12:05:45 2024