Skip to main content
Participant
April 5, 2024
Question

Indesign Grep for searching quotes marks (beginning of line)

  • April 5, 2024
  • 3 replies
  • 203 views

by using GREP, I'm trying to check a long indesign document for all the quotation marks (French quotation marks, i.e. « and ») at the beginning of the line... I'm unable to find a working Grep in indesign

Could a specialist help me?

Thx 🤞

This topic has been closed for replies.

3 replies

Peter Kahrel
Community Expert
Community Expert
April 6, 2024

But @anne36546105b7ow wants just the quotation marks at the beginning of a line (by which I guess she means 'paragraph'). So ^« will do (assuming that closing q marks never occur at the beginning of a paragraph).

m1b
Community Expert
Community Expert
April 5, 2024

Hi @anne36546105b7ow, this will find the quote at the start of line, including the quote marks:

 

^«[^»]+»

 

From left to right:

^  =  at the start of paragraph (as @Robert at ID-Tasker mentioned)

«  =  a normal left quote

[^»]  =  find any character except right-quote

+  =  find one or more of these

»  =  normal right quote

 

This will find the quoted text, without the quote marks:

 

^«\K[^»]+

 

\K  =  throw out whatever we matched up until here. In other words, we match the quote mark but don't keep it.

- Mark

Robert at ID-Tasker
Legend
April 5, 2024

Line or Paragraph?

 

For Paragraph - or after SHIFT+ENTER - you could use "^".