Page 1 of 1
Find Replace query
Posted: 2014-11-09 03:08:59
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
Re: Find Replace query
Posted: 2014-11-09 06:35:38
by phspaelti
Hello Declan,
- Open Find and set to Powerfind (not Powerfind Pro)
- Type the brackets
- Inside the brackets, put Capture() from the 'Match' menu.
- Inside the Capture() parentheses, put "Any Character" from the 'Wildcard' menu.
- 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.)
- In the replace box, put "Captured 1" from the 'Match' menu
- 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.)
Re: Find Replace query
Posted: 2014-11-09 10:43:02
by Declan
Fantastic. Thanks for the step by step instructions.
Declan