Find Replace query
Page 1 of 1

Author:  Declan [ 2014-11-09 03:08:59 ]
Post subject:  Find Replace query

Could anyone kindly tell me how to go about Finding text between square brackets, and applying a paragraph style to the text between the brackets (deleting the brackets)?
I'd be most grateful,


Author:  phspaelti [ 2014-11-09 06:35:38 ]
Post subject:  Re: Find Replace query

Hello Declan,
  1. Open Find and set to Powerfind (not Powerfind Pro)
  2. Type the brackets
  3. Inside the brackets, put Capture() from the 'Match' menu.
  4. Inside the Capture() parentheses, put "Any Character" from the 'Wildcard' menu.
  5. After the "Any Character", put "Shortest 1 or more" from the 'Repeat' menu. (Now you can test the Find to see that it matches what you want.)
  6. In the replace box, put "Captured 1" from the 'Match' menu
  7. Select the 'Captured 1' and apply the paragraph style you want to add. Make sure "Replace Attributes" is checked below the replace box.
Then you are ready to go.

Here's what it should look like. (I'm using Bold Italic on the replace, but any styles will do.)

Find_in_Brackets.png [ 45.93 KiB | Viewed 1682 times ]

Author:  Declan [ 2014-11-09 10:43:02 ]
Post subject:  Re: Find Replace query

Fantastic. Thanks for the step by step instructions.


Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group