0 голосов
225 просмотров

Is there a way to find “A or B or C or D” in PT using regex? If A, B, C and D are single characters we can put them between square brackets, but what if A, B, C and D are longer strings? PT has the function “multiple words” but this only has the option to combine two words “A or B”.

One option is: first find two words, then find the other two and “Add to list”. However, this will give less hits than the total number of occurrences: it does not give an additional hit if the different words occur in the same verse.

The case in point: I want to find all occurrences of or huú or ulu or ulú (all whole words).

Find or huú: 265 hits.

Find ulu or ulú: 76 hits.

Total: 341 hits.

Find or huú, then ulu or ulú “add to list”: 330 hits. This means that when browsing through this list, one may overlook occurrences when one of ulu/ulú and one of hū/huú occur in the same verse.

Hence my question: can this search be done with RegEx?

Paulus+Kieviet

Paratext от (517 очков)
снова показан | 225 просмотров

1 ответ

0 голосов

Sorry, I just found out that the vertical bar | is used for alternation.

(Still, not quite sure why “regex:(hū|huú|ulu|ulú)” only gives 300 results.)

Paulus+Kieviet

от (517 очков)
снова показан

Paulus+Kieviet - do you have the context set to “Whole word only”? Were you using that before? That is one thing that can affect the counts. In my test I do see that each individual word in the search is found - regardless of how many occur in a verse.

Похожие вопросы

+1 голос
5 ответов 886 просмотров
I want to change lowercase to uppercase in certain situations - for instance I want to change all lowercase after a colon to ... very simple list and then adding to it as you go.
Phil_Leckrone 9,9тыс. задал вопрос мар 2, 2022
0 голосов
5 ответов 641 просмотров
In our project's Biblical Terms list, I'm looking for an (easier) way to filter for terms which contain too many ... \r\n and filter more specifically that way? Any suggestions?
Mark P 3,2тыс. задал вопрос июл 4, 2017
0 голосов
3 ответов 943 просмотров
[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,4тыс. задал вопрос июн 5, 2019
0 голосов
5 ответов 751 просмотров
It appears that for all projects that I have created in PT8 RegEx Pal displays text in the find and replace windows using ... What do I need to do to stop this from happening?
Kent Spielmann 1,8тыс. задал вопрос фев 26, 2018
0 голосов
8 ответов 1,4тыс. просмотров
We have a user who has inserted a lot of \pn and some \nd inside of footnotes. We now know we need those to be ... the search to inside of a single footnote? Thank you, MSEAIT/LT
MSEAIT_LT 478 задал вопрос авг 20, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,044 вопросов
6,004 ответов
5,671 комментариев
2,026 пользователей