0 votes

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

Paratext by (493 points)

1 Answer

0 votes
Best answer

I just noticed that some text in my previous post didn’t come through correctly. (The asterisks in the text were interpreted as italics markers.) Below is a corrected version.

Paulus+Kieviet

by (493 points)
reshown

Try this for search: regex:\\s Ko te [^\\]+[aeiou] \\
N.b. On this forum. you can use the style “preformatted text” to show your characters exactly how you type them in:
grafik

That worked. So the trick is to exclude backslashes. Thank you!

Paulus+Kieviet

Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Every day they continued to meet together in the temple courts. They broke bread in their homes and ate together with glad and sincere hearts, praising God and enjoying the favor of all the people. And the Lord added to their number daily those who were being saved.
Acts 2:46-47
2,616 questions
5,350 answers
5,037 comments
1,419 users