Existe uma maneira de encontrar “A ou B ou C ou D” no PT usando regex? Se A, B, C e D forem caracteres únicos, podemos colocá-los entre colchetes, mas e se A, B, C e D forem strings mais longas? O PT tem a função “múltiplas palavras”, mas ela só oferece a opção de combinar duas palavras “A ou B”.
Uma opção é: primeiro encontrar duas palavras, depois encontrar as outras duas e “Adicionar à lista”. No entanto, isso resultará em menos acertos do que o número total de ocorrências: não há um acerto adicional se as diferentes palavras ocorrerem no mesmo versículo.
O caso em questão: quero encontrar todas as ocorrências de hū ou huú ou ulu ou ulú (todas como palavras inteiras).
Encontrar hū ou huú: 265 acertos.
Encontrar ulu ou ulú: 76 acertos.
Total: 341 acertos.
Encontrar hū ou huú, depois ulu ou ulú “adicionar à lista”: 330 acertos. Isso significa que, ao navegar por essa lista, pode-se perder ocorrências quando uma de ulu/ulú e uma de hū/huú ocorrem no mesmo versículo.
Portanto, minha pergunta: essa busca pode ser feita com RegEx?
Paulus+Kieviet
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 hū or huú or ulu or ulú (all whole words).
Find hū or huú: 265 hits.
Find ulu or ulú: 76 hits.
Total: 341 hits.
Find hū 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