Skip to main content
Participant
January 5, 2023
Answered

Grep, Italicise words between curly brackets and remove the curly brackets

  • January 5, 2023
  • 1 reply
  • 339 views

New to GREP but I'm fairly sure it's the solution to my needs. I know this is an old thread, but I'm hoping someone will see it and can help with a similar issue and possibly share what the code would look like and how best to use it.

 

In my case, the text is one or more words in between braces. I need the words in between italicized and the braces removed.

 

Example: {Miracle on 34th Street} should change to Miracle on 34th Street

 

Any help would be so much appreciated! Thank you in advance.

[ branched from Grep, Italicise Quotes to InDesign forum by moderator ]

[ title added by moderator ]

This topic has been closed for replies.
Correct answer Peter Kahrel
Find what: \{(.+?)\}

Change to: $1

Change format: Italic (or a character style)

 

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
January 5, 2023
Find what: \{(.+?)\}

Change to: $1

Change format: Italic (or a character style)

 

Participant
January 5, 2023

Thanks! I'll give this a try.

Participant
January 5, 2023

That worked perfectly! Thank you!