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.
Copy link to clipboard
Copied
Without further informations (maybe) I would do something like this:
\d+(?=[*+]$)|\d+$
Copy link to clipboard
Copied
Works like a charm! Thanks so much.