0 votes
251 views

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 (517 points) | 251 views

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 (517 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

Related questions

0 votes
1 answer 71 views
How do I create a REGEX search to find all unique proper names in the OT with a source text that uses the \pn .. ... each term? Some of this may need to happen outside of Paratext.
Clear7419 251 asked Nov 19, 2024
0 votes
1 answer 344 views
Hi I am working with a team to enter renderings in their Biblical terms tool. Their language marks the future ... this would negate the value of the checking. Thanks anon703820
anon703820 215 asked Nov 26, 2018
0 votes
3 answers 267 views
Hi, Does anyone know how I can find anywhere in my PT project where there are two quotes within the same paragraph? I can ... and they asked, ** **Is Peter here? Thanks in advance
anon953007 213 asked Sep 9, 2020
0 votes
3 answers 885 views
[There is no Help topic for RegEx Pal, so I'll start this thread for myself or anyone else to add helpful ... History panic (post #3) Key terms for search: regular expression
wdavidhj 1.4k asked Jun 5, 2019
0 votes
2 answers 558 views
Dear reader. I would like to find \fq followed by any string thing including ɛ ɔ ɲ ŋ until the first \\ft ... the search to the first non-occurance? Thanks in advance, Bart
goodgoan 347 asked Aug 3, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
3,037 questions
5,994 answers
5,661 comments
2,022 users