Select all the text inside ( ) — It´s possible?

  • Hi! I want to know if it is possible to select all the text inside two parenthesis ( ). By example, suppose you have a text that often quotes some bibliography and ends with (The Decline and Fall of the Roman Empire, v1, pg 123). You want to automatically Find and select all the text inside the ( ) to put them in italic, or apply a style, etc.
    Is possible to do this? I know is hard since the text inside the ( ) is not fixed in length of characters.
    If is not possible with Affinity, do you know some tool that is capable of it, even if it is online?

  • You can do it manually with the Text Frame Brush Tool, either with or without the (). No problem. I actually downloaded your message text and did it inside of v3.0.3.

    2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Tahoe O/S 26, Affinity v1, v2 & v3, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet, 2TB OWC SSD USB external hard drive, Logitech MX Anywhere 3 bluetooth mouse.

  • marce

    First, create a character style in which Italic is defined. Then apply the formatting using “Find and Replace”.

    Open “Edit → Find and Replace” and activate the “Regular Expression” option. Make sure that the search scope is set to the whole document and not just to a selection.

    Enter the following expression in the search field:

    Code
    \((.*?)\)

    Leave the replace field empty. Instead, use the gear icon under “Format” to assign the previously created character style (Italic). Then click “Replace All”.

    All text inside round parentheses will now automatically receive the italic character style.

  • This threads contains 17 more posts that have been hidden for guests.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!