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
Find Replace query
Re: Find Replace query
Hello Declan,
Here's what it should look like. (I'm using Bold Italic on the replace, but any styles will do.)
- 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.
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 (45.93 KiB) Viewed 3692 times
philip
Re: Find Replace query
Fantastic. Thanks for the step by step instructions.
Declan
Declan