Support capture groups with the RE/flex regex matcher?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza con el comparador de expresiones regulares RE-flex y su documentación, centrándote en el comportamiento existente de los grupos no capturantes y en las consideraciones de compatibilidad indicadas. Determina cómo debería exponerse la compatibilidad directa con grupos de captura y qué comportamiento demostraría que RE-flex la admite sin Boost.Regex ni PCRE2.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello,
First off, I'm a huge fan of RE-flex for my projects and ugrep is by far my most valuable and most used tool at my workplace. I deal with a lot of text.
Out of all that usage, I consistently miss the capture group feature. I know it is supported with other regex libraries that RE-flex (and therefore ugrep) can use, but that is not the same as RE-flex supporting it directly. I love ugrep and RE-flex's speed and features, but it always hurts me that I have to compile with PCRE2 mode (-P) to get capture groups with ugrep and use Boost.Regex when directly using RE-flex. They're such a common thing to need--why does RE-flex not support them? I'd like to use it and only it so that I do not have to bother with Boost or PCRE2, and also for the performance benefits.
I know POSIX and other compatibility things are at play, but I don't see how supporting capture groups would violate them. The docs say that RE-flex supports the lazy quantifiers, which is not part of POSIX, and it also supports non-capturing groups, but not capture groups. Why is this? It seems like it would be easy to add support for capturing groups considering that non-capturing groups are supported. It makes me think there is some sort of design decision that has already been made which does not allow them, but I don't understand enough of the library to know what it is.
Thanks in advance for your patience if I am making an incorrect assumption or unaware of some functionality that would do this. I'm also sorry if this has already been addressed in another issue or in the docs, but I could not find it either here, ugrep's github project, or the docs.
- Lenguaje dominante
- C++
- Estrellas
- 603
- Forks
- 97
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Genivia/RE-flex
-
Grammar railroad diagramAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
-
Dynamically linked libraryAbiertoquestion
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de Genivia/RE-flex
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
component: tabs platform: macOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
zen-browser/desktop#16860 ·
Los mantenedores suelen responder en 1 día