Find Replace query

Everything related to our flagship word processor.
Post Reply
Declan
Posts: 4
Joined: 2011-01-25 21:24:09

Find Replace query

Post by Declan »

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,

Declan
User avatar
phspaelti
Posts: 1313
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Find Replace query

Post by phspaelti »

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.)
Attachments
Find_in_Brackets.png
Find_in_Brackets.png (45.93 KiB) Viewed 3517 times
philip
Declan
Posts: 4
Joined: 2011-01-25 21:24:09

Re: Find Replace query

Post by Declan »

Fantastic. Thanks for the step by step instructions.

Declan
Post Reply