फिल, धन्यवाद, उसने वह खोज लिया जिसके लिए मैं खोज रहा था। मैंने : के बारे में भी गलतफहमी की थी, जो regex में एक मेटा-कैरेक्टर नहीं है। वास्तव में, regex \\fq [^\\]*?\\ft\s[^:] और regex \\fq [^\\]*?\\ft\s[^\:] एक ही (अच्छा) परिणाम देते हैं, जिसे मैं समझने की कोशिश कर रहा हूँ। तो, केवल इस regex को बेहतर समझने के लिए PT में:
क्या \s[^:] का अर्थ स्पेस के बाद पहला non-colon है?
फिर:
क्या \s[^\:] का अर्थ पहला non-backslash है जो कॉलन से अनुसरित है? या इसका अर्थ पहला non-backslash है जो non-colon से अनुसरित है?
बहुत आभारी हूँ,
बार्ट.
Thank you Phil, that did find what I was looking for. I was also mistaken about the : which is not a metacharacter in regex. Actually, the regex \\fq [^\\]*?\\ft\s[^:] and the regex \\fq [^\\]*?\\ft\s[^\:] deliver the same (good) result, which I am trying to understand. So, just for the sake of a better understanding of this regex in PT:
does \s[^:] mean the first non-colon after a space?
then:
would \s[^\:] mean the first non-backslash followed by a colon? Or does it mean the first non-backslash followed by a non-colon?
Much obliged,
Bart.
English से मशीन-अनुवादित