Estoy intentando hacer una búsqueda de todos los encabezados de sección que comienzan con ciertas partículas y terminan con una vocal sin acento.
Por ejemplo, debería encontrar:
\s Ko te ongo tangata langa fale
pero no:
\s Ko te ongo tangata langa falé
Usé la siguiente expresión regular:
regex:\s Ko te .?[aeiou]\s\
Sin embargo, esto no funciona: Paratext encuentra todos los encabezados de sección que comienzan con “Ko te”, pero también encuentra aquellos que no terminan con una vocal simple. Para estos últimos, el resultado de la búsqueda incluye todo el texto hasta el siguiente encabezado de sección que sí termina con una vocal simple. Por ejemplo, un resultado de la búsqueda es:
\s Ko te fu’u 'akau mo tono fuá \r …. [mucho, mucho texto] …. \s Ko te fakatokanga
Me habría esperado que el uso de *? (no codicioso) resolviera esto, pero aparentemente no lo hace.
También probé variantes como
regex:\s Ko te .?[aeiou]\ (solo coincidencias incorrectas)
regex:\s Ko te .?[aeiou]\s*\r\n (sin coincidencias)
¿Hay otra forma que funcione?
¡Gracias de antemano!
Paulus+Kieviet
I’m trying to do a search for all section headings that start with certain particles and end with a vowel without accent.
E.g. it should find:
\s Ko te ongo tangata langa fale
but not:
\s Ko te ongo tangata langa falé
I used the following Regex:
regex:\s Ko te .?[aeiou]\s\
However, this does not work: Paratext does find all section headings that start with “Ko te”, but also finds those that don’t end with a plain vowel. For the latter, the search result includes all text down to the next section heading that does end with a plain vowel. For example, one search result is:
\s Ko te fu’u 'akau mo tono fuá \r …. [lots and lots of text] …. \s Ko te fakatokanga
I would have expected that the use of *? (not greedy) would take care of this, but apparently it doesn’t.
I also tried variants like
regex:\s Ko te .?[aeiou]\ (only faulty hits)
regex:\s Ko te .?[aeiou]\s*\r\n (no hits)
Is there another way which does work?
Thanks in advance!
Paulus+Kieviet
Traducción automática desde English