Skip to main content
Participant
January 8, 2023
解決済み

חיפוש והחלפה של טקסטים עם קודים

  • January 8, 2023
  • 返信数 2.
  • 179 ビュー

שלום וברכה!

יש לי טקסטים עם קודים ואני צריכה לעמד אותם באינדיזיין.

איך אפשר לחפש טקסט שנמצא בין שני קודים ולהחיל עליו סגנון שאני יוצרת באינדיזיין וכן באותו חיפוש למחוק את הקודים?

יעזור לי מאד לקבל תשובה

תודה רבה

מצרפת צילום מסך לדוגמא.

 

このトピックへの返信は締め切られました。
解決に役立った回答 Mike Witherell

If you want to leave the code characters in the text, then do this GREP find/replace

(?<=<CQ>).+?(?=<EIT>)

and replace with field stays empty while applying only an italic (or whatever formatting you wanted) character style.

If you want the code characters to vanish, too, then try this GREP find/replace

(<CQ>)(.+?)(<EIT>)

and replace it with $2 in the Change To field, along with the application of an italic character style (or whatever character style attribute you had in mind)

返信数 2

Mike Witherell
Community Expert
Community Expert
January 8, 2023

If you want to leave the code characters in the text, then do this GREP find/replace

(?<=<CQ>).+?(?=<EIT>)

and replace with field stays empty while applying only an italic (or whatever formatting you wanted) character style.

If you want the code characters to vanish, too, then try this GREP find/replace

(<CQ>)(.+?)(<EIT>)

and replace it with $2 in the Change To field, along with the application of an italic character style (or whatever character style attribute you had in mind)

Mike Witherell
Robert at ID-Tasker
Legend
January 8, 2023