¿Hay alguna forma de buscar “A o B o C o D” en PT usando expresiones regulares? Si A, B, C y D son caracteres individuales, podemos ponerlos entre corchetes, pero ¿qué pasa si A, B, C y D son cadenas más largas? PT tiene la función “múltiples palabras”, pero esta solo tiene la opción de combinar dos palabras “A o B”.
Una opción es: primero buscar dos palabras, luego buscar las otras dos y “Agregar a la lista”. Sin embargo, esto dará menos coincidencias que el número total de apariciones: no da una coincidencia adicional si las diferentes palabras ocurren en el mismo versículo.
El caso en cuestión: quiero encontrar todas las apariciones de hū o huú o ulu o ulú (todas como palabras completas).
Buscar hū o huú: 265 coincidencias.
Buscar ulu o ulú: 76 coincidencias.
Total: 341 coincidencias.
Buscar hū o huú, luego ulu o ulú “agregar a la lista”: 330 coincidencias. Esto significa que al revisar esta lista, se pueden pasar por alto apariciones cuando una de ulu/ulú y una de hū/huú ocurren en el mismo versículo.
Por lo tanto, mi pregunta: ¿se puede realizar esta búsqueda con 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