@Matthew_Lee यहाँ Regex Pal के लिए एक regex है जो फुटनोट में क्लोज़िंग मार्करों को ठीक करता है:
खोजें:
(?<=\\([f])\s)(?s).*?(?=\\\1\*):::(?<=\\(f\w+\s)([^\\]|\\(?!f))*?\\(f\w+).*?)\\\3\*(\s*)(\\\1)?
बदलें:
\4\\\1
यह क्या करता है, वह कुछ ऐसा लेता है जैसे:
\ft Text \fqa Alternate Text\fqa* More text.\f*
और इसे बदल देता है:
\ft Text \fqa Alternate Text \ft More text.\f*
पहला \ft कैप्चर किया जाता है और \fqa* को बदलने के लिए उपयोग किया जाता है, और “More Text” से पहले का स्पेस कैप्चर किया जाता है और \ft से पहले ले जाया जाता है।
इसे userMenu.txt में जोड़ें:
Fix footnote closers#r#(?<=\\([f])\s)(?s).*?(?=\\\1\*):::(?<=\\(f\w+\s)([^\\]|\\(?!f))*?\\(f\w+).*?)\\\3\*(\s*)(\\\1)?#\4\\\1
@Matthew_Lee Here is a regex for Regex Pal to fix closing markers in footnotes:
Find:
(?<=\\([f])\s)(?s).*?(?=\\\1\*):::(?<=\\(f\w+\s)([^\\]|\\(?!f))*?\\(f\w+).*?)\\\3\*(\s*)(\\\1)?
Replace:
\4\\\1
What this does is take something like:
\ft Text \fqa Alternate Text\fqa* More text.\f*
And change it to:
\ft Text \fqa Alternate Text \ft More text.\f*
The first \ft is captured and is used to replace \fqa* and the space before “More Text” is captured and moved before the \ft .
Add this to userMenu.txt:
Fix footnote closers#r#(?<=\\([f])\s)(?s).*?(?=\\\1\*):::(?<=\\(f\w+\s)([^\\]|\\(?!f))*?\\(f\w+).*?)\\\3\*(\s*)(\\\1)?#\4\\\1
English से मशीन-अनुवादित