Copier le lien dans le Presse-papiers
Copié
Hello. I've tried this (https://community.adobe.com/t5/indesign-discussions/grep-query/m-p/14365227) for applying a character style to text within parentheses but must not be changing the correct portion of the string to ( ).
Hi @Parny:
Nevermind! I see the issue. The OP was targeting text within brackets. You are targeting text within parentheses.
This would do it: \(\K[^\]]+?(?=\))
But: you want to include the parentheses., so
\(.+?\)
Since this is an entirely different question, I'm going to move it to its own thread.
~Barb
Copier le lien dans le Presse-papiers
Copié
Can you share a screenshot that includes the GREP style and the result?
~Barb
Copier le lien dans le Presse-papiers
Copié
Copier le lien dans le Presse-papiers
Copié
Or is it a Find/Change string, not using the GREP window?
Copier le lien dans le Presse-papiers
Copié
I was trying the string \[\K[^\]]+?(?=\]), which was in a discussion early this year.
Copier le lien dans le Presse-papiers
Copié
You can do with the a GREP style but these strings can be tough to troubleshoot: could you show your GREP as is appears in the style options dialog box? (Not copy/paste the string here?)
~Barb
Copier le lien dans le Presse-papiers
Copié
Hi @Parny:
Nevermind! I see the issue. The OP was targeting text within brackets. You are targeting text within parentheses.
This would do it: \(\K[^\]]+?(?=\))
But: you want to include the parentheses., so
\(.+?\)
Since this is an entirely different question, I'm going to move it to its own thread.
~Barb
Copier le lien dans le Presse-papiers
Copié
Barb, thanks for your help. I'm not handling this correctly still. I guess I didn't place \(.+?\) in its correct place in the string?
Copier le lien dans le Presse-papiers
Copié
Can you share your Paragraph Styel Options > GREP Style screenshot?
~Barb
Copier le lien dans le Presse-papiers
Copié
Copier le lien dans le Presse-papiers
Copié
Yes, I highly recommend purchasing a copy of Peter Kahrel's book: GREP in InDesign.
~Barb
Copier le lien dans le Presse-papiers
Copié
Many thanks!
Trouvez plus d’idées, d’événements et de ressources dans la nouvelle communauté Adobe
Explorer maintenant