Estou tentando fazer uma busca por todos os títulos de seção que começam com certas partículas e terminam com uma vogal sem acento.
Por exemplo, deveria encontrar:
\s Ko te ongo tangata langa fale
mas não:
\s Ko te ongo tangata langa falé
Usei a seguinte Regex:
regex:\s Ko te .?[aeiou]\s\
No entanto, isso não funciona: o Paratext encontra todos os títulos de seção que começam com “Ko te”, mas também encontra aqueles que não terminam com uma vogal simples. Para estes últimos, o resultado da busca inclui todo o texto até o próximo título de seção que termina com uma vogal simples. Por exemplo, um dos resultados da busca é:
\s Ko te fu’u 'akau mo tono fuá \r …. [muito, muito texto] …. \s Ko te fakatokanga
Eu esperava que o uso de *? (não guloso) resolvesse isso, mas aparentemente não resolve.
Também tentei variantes como
regex:\s Ko te .?[aeiou]\ (apenas resultados incorretos)
regex:\s Ko te .?[aeiou]\s*\r\n (nenhum resultado)
Existe outra maneira que funcione?
Obrigado desde já!
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
Tradução automática de English