क्या PT में रेगैक्स का उपयोग करके “A या B या C या D” खोजने का कोई तरीका है? यदि A, B, C और D एकल वर्ण हैं, तो हम उन्हें वर्ग कोष्ठक के बीच रख सकते हैं, लेकिन यदि A, B, C और D लंबे स्ट्रिंग हैं तो क्या करें? PT में “multiple words” फ़ंक्शन है, लेकिन इसमें केवल दो शब्दों “A या B” को जोड़ने का विकल्प है।
एक विकल्प यह है: पहले दो शब्द खोजें, फिर अन्य दो खोजें और “Add to list” करें। हालाँकि, इससे कुल घटनाओं की संख्या से कम हिट मिलेंगे: यदि अलग-अलग शब्द उसी श्लोक में आते हैं, तो यह अतिरिक्त हिट नहीं देता है।
समस्या यह है: मैं hū या huú या ulu या ulú (सभी पूर्ण शब्द) की सभी घटनाओं को खोजना चाहता हूँ।
hū या huú खोजें: 265 हिट।
ulu या ulú खोजें: 76 हिट।
कुल: 341 हिट।
hū या huú खोजें, फिर ulu या ulú “add to list”: 330 हिट। इसका मतलब है कि जब इस सूची में ब्राउज़िंग की जाती है, तो यदि ulu/ulú में से एक और hū/huú में से एक उसी श्लोक में आते हैं, तो घटनाओं को छूट सकता है।
इसलिए मेरा सवाल: क्या यह खोज 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
English से मशीन-अनुवादित