Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
0

GREP find anything inside parentheses individually

Explorer ,
Jan 19, 2023 Jan 19, 2023

Copy link to clipboard

Copied

I'm using this grep \(.+\) to find anything inside parentheses, but if there are two sets of parantheses in the same paragraph then it finds both of them together with whatever is between them, is there a way to limit this so it finds only the first set then the next?

TOPICS
How to

Views

341
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 19, 2023 Jan 19, 2023

found it, \(.+?\) solves the problem, but when it is combined with other grep it still finds more than one set, to solve that problem you can look at this link: https://community.adobe.com/t5/indesign-discussions/how-to-combine-shortest-match-with-location-using-grep-styles/m-p/8833662 

Votes

Translate
Explorer ,
Jan 19, 2023 Jan 19, 2023

Copy link to clipboard

Copied

found it, \(.+?\) solves the problem, but when it is combined with other grep it still finds more than one set, to solve that problem you can look at this link: https://community.adobe.com/t5/indesign-discussions/how-to-combine-shortest-match-with-location-usin... 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2023 Jan 20, 2023

Copy link to clipboard

Copied

LATEST

What if you have text like this

This is sample text (containing text within (parenthesis) as an example)

 

Plus your grep is inclusive of the parenthesis but you say anything inside.

 

Anyway - missing a very simple instruction
\(.+?\)

 

 

 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines