Highlighted

grep with multiple requests

Community Beginner ,
Aug 14, 2020

Copy link to clipboard

Copied

imagine this pattern:
15. October
16. November
17. December

always a two-digit number... a period, space, and a word (month)

how do I find recurrences with grep? I'd like to take advantage of the grep styles.

Individually I can, but how do you say "in addition to the number also find me a point and then a space and then a text"?

I don't understand how to add requests... if I put them below it doesn't work

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

How about the following

\d{2}.\s\w+

-Manan

Topics

How to, Scripting

Views

110

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

grep with multiple requests

Community Beginner ,
Aug 14, 2020

Copy link to clipboard

Copied

imagine this pattern:
15. October
16. November
17. December

always a two-digit number... a period, space, and a word (month)

how do I find recurrences with grep? I'd like to take advantage of the grep styles.

Individually I can, but how do you say "in addition to the number also find me a point and then a space and then a text"?

I don't understand how to add requests... if I put them below it doesn't work

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

How about the following

\d{2}.\s\w+

-Manan

Topics

How to, Scripting

Views

111

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
Community Beginner ,
Aug 14, 2020

Copy link to clipboard

Copied

/d/d./s(January, |February, |March, |April, |May, |Juni, |July)

... is right?

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...
Adobe Community Professional ,
Aug 14, 2020

Copy link to clipboard

Copied

Try this 

\d\d\.\s(January|February|March|April|May|June|July|August|September|October|November|December)

Bit didn't you get a few days ago an answer for this question?

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...
Community Beginner ,
Aug 14, 2020

Copy link to clipboard

Copied

yes I just added the comma and the space to my "big problem". What I found on the grep does not apply literally in indesign. Where can I find examples? They're not that clear on the manual... for example they talk about multi-straight and do not explain the concrete result of this. I found a test for the online grep, but it's not exactly the indesign grep, because it has variations in the syntax. Although the tool is powerful I do not find it very intuitive. For now, I would need examples. If I found a list of examples it would be easier for me.

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...
Adobe Community Professional ,
Aug 14, 2020

Copy link to clipboard

Copied

Just google “InDesign grep” and you will find a looooot of resources!

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...
Most Valuable Participant ,
Aug 14, 2020

Copy link to clipboard

Copied

If you have a GREP expression and you want to see how ot works, try my WhatTheGrep script: http://www.jongware.com/idgrephelp.html

 

There are some complicated expressions that befuddle it but for basic expressions it works flawless. It can also point out possible mistakes.

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...
Adobe Community Professional ,
Aug 14, 2020

Copy link to clipboard

Copied

How about the following

\d{2}.\s\w+

-Manan

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...
Community Beginner ,
Aug 21, 2020

Copy link to clipboard

Copied

beautiful this last intervention and very synthetic - I loved it, but this research also finds the texts "21, 1" while modified so it works: \d{1,}\. \w+

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...