InDesign GREP find digits in last word of paragraph

New Here ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

I'm struggling to figure out this GREP code. I created a paragraph style to highlight numbers in the last word of a paragraph.

 

An example data set would be:

Baltimore 3

Jacksonville 5*

Portland 9+

Sunny7 3+

 

I want to only highlight the numbers, but only if they're at the end of the paragraph, and I don't want to select the pluses or asterisks.

TOPICS
How to

Views

57

Likes

translate

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 guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Mar 11, 2021 Mar 11, 2021
Without further informations (maybe) I would do something like this: \d+(?=[*+]$)|\d+$

Likes

translate

Translate

Translate
Most Valuable Participant ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

Without further informations (maybe) I would do something like this:

\d+(?=[*+]$)|\d+$

Likes

translate

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 guidelines
New Here ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

Works like a charm! Thanks so much.

Likes

translate

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 guidelines