adobe indesign - Select multiple words and characters using GREP -


i need grep help. i'm trying search text in indesign file has lesser-than "<" , greater-than ">" characters on either end. text 1 word or more , include spaces , numbers. but, here's here's catch, there may multiple words on line, such , , <12 peaches> , <3 plums>.

i tried using <(.+)> picks whole paragraph , removes beginning , ending brackets < > leaves ones in middle.

anyone know proper wildcard structure find text or number between these brackets , if more 1 set of "<>" appear in single paragraph?

fyi, grep in indesign not same it's used on web.

the + metacharacter greedy meaning tends catch more needed. can restrain question mark :

<.+?>

or change pattern

<[^>]+>


Comments