J’essaie de rechercher tous les titres de section qui commencent par certaines particules et se terminent par une voyelle sans accent.
Par exemple, il devrait trouver :
\s Ko te ongo tangata langa fale
mais pas :
\s Ko te ongo tangata langa falé
J’ai utilisé l’expression régulière suivante :
regex:\s Ko te .?[aeiou]\s\
Cependant, cela ne fonctionne pas : Paratext trouve bien tous les titres de section qui commencent par « Ko te », mais il trouve aussi ceux qui ne se terminent pas par une voyelle simple. Pour ces derniers, le résultat de recherche inclut tout le texte jusqu’au prochain titre de section qui se termine par une voyelle simple. Par exemple, un des résultats de recherche est :
\s Ko te fu’u 'akau mo tono fuá \r …. [beaucoup de texte] …. \s Ko te fakatokanga
J’aurais attendu que l’utilisation de *? (non glouton) règle ce problème, mais apparemment ce n’est pas le cas.
J’ai aussi essayé des variantes comme
regex:\s Ko te .?[aeiou]\ (seulement des correspondances erronées)
regex:\s Ko te .?[aeiou]\s*\r\n (aucune correspondance)
Y a-t-il une autre méthode qui fonctionne ?
Merci d’avance !
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
Traduit automatiquement depuis English