Highlighted

Greps

New Here ,
Oct 29, 2020

Copy link to clipboard

Copied

Can anyone explain to me what this bit of code is and how it works please?

 

<?>

 

Thanks

Most Valuable Participant
Correct answer by Jongware | Most Valuable Participant

Nothing special. The only GREP command is the ?, which means "0 or 1 occurrence".

So this will find all ">" characters, and if it is preceded by a "<" this will be included in the match.

 

For a list of GREP codes see https://helpx.adobe.com/indesign/user-guide.html/indesign/using/find-change.ug.html#metacharacters_for_searching

TOPICS
How to, Scripting

Views

44

Likes

Translate

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

Greps

New Here ,
Oct 29, 2020

Copy link to clipboard

Copied

Can anyone explain to me what this bit of code is and how it works please?

 

<?>

 

Thanks

Most Valuable Participant
Correct answer by Jongware | Most Valuable Participant

Nothing special. The only GREP command is the ?, which means "0 or 1 occurrence".

So this will find all ">" characters, and if it is preceded by a "<" this will be included in the match.

 

For a list of GREP codes see https://helpx.adobe.com/indesign/user-guide.html/indesign/using/find-change.ug.html#metacharacters_for_searching

TOPICS
How to, Scripting

Views

45

Likes

Translate

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
Oct 29, 2020 0
Most Valuable Participant ,
Oct 29, 2020

Copy link to clipboard

Copied

Nothing special. The only GREP command is the ?, which means "0 or 1 occurrence".

So this will find all ">" characters, and if it is preceded by a "<" this will be included in the match.

 

For a list of GREP codes see https://helpx.adobe.com/indesign/user-guide.html/indesign/using/find-change.ug.html#metacharacters_f...

Likes

Translate

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
Reply
Loading...
Oct 29, 2020 1