Skip to main content
Participant
January 8, 2023
Answered

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

  • January 8, 2023
  • 2 replies
  • 178 views

שלום וברכה!

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

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

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

תודה רבה

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

 

This topic has been closed for replies.
Correct answer 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 replies

Mike Witherell
Community Expert
Mike WitherellCommunity ExpertCorrect answer
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