Skip to main content
SuzzyFlamingo
Inspiring
Mar 13, 2025 10:25 PM UTC
Answered

Searching and replacing with styles

Hi friends!

Sorry for posting such an ignorant question, but I am still just beginning.

If I have text that is within square brackets [ffgggggvgtgg] how can  I search for any string of text like that and apply a certain char style to that text.

I think I could handle this in Word in ID I don't have a clue.

 

Thank you

Susan

 

Robert at ID-Tasker
Robert at ID-TaskerCorrect answer
Legend
Mar 14, 2025 2:21 AM UTC

@James Gifford—NitroPress

 

If you apply any kind of formatting - you don't have to fill Change To - just left if blank.

 

If there is no formatting to be applied - then empty Change To will delete found text. 

 

10 replies

James Gifford—NitroPress
Legend
Mar 13, 2025 10:50 PM UTC

There are several approaches of varying complexity (and something like automation) but the simple answer is just to use Find/Replace — actually, the GREP variation of it.

  • Search for: \[.+\], which is a string of any number of any characters between square brackets. (Note you have to 'escape' the brackets with a backslash, so they are interpreted as a literal character and not a string formatting limiter.)
  • Replace with: $0, which is all "found text."
  • Under "Change Format," specify the Character Style you wish to apply.

 

 

GREP is a bit mysterious and tricky to master, but it's the key to all complex searches and "replace" operations.

Translate
Robert at ID-Tasker
Robert at ID-TaskerCorrect answer
Legend
Mar 14, 2025 2:21 AM UTC

@James Gifford—NitroPress

 

If you apply any kind of formatting - you don't have to fill Change To - just left if blank.

 

If there is no formatting to be applied - then empty Change To will delete found text. 

 

Translate
SuzzyFlamingo
Inspiring
Mar 14, 2025 8:35 AM UTC

Thank you for your attention!

Translate