I’m starting to learn GREP styles and have a problem with one I can’t figure out. On the first line of a copy block, I have a price followed by a space followed by a descriptor (like SALE, EACH, etc.) that could be one or more words and could include punctuation. After the first line, there is more copy for the product description, etc., but none of this requires a GREP style; only the price line does. There are five character styles to be applied within the price line: DOLLAR SIGN (to superscript the dollar sign at the start of the price), DISAPPEAR (to make the decimal point seemingly vanish), DECIMALS (to reduce the point size and baseline shift the decimals of the price), BUFFER SPACE (to track the space after the price to tuck the descriptor under the superscripted decimals of the price), and DESCRIPTOR.
My problem is with the GREP style for the descriptor. I need all the characters in the descriptor (including spaces and punctuation) AFTER the buffer space to use the DESCRIPTOR character style. I can get the words to work by using \u|, but then the punctuation is unchanged. Using \w or . messes up the other character styles.
Here are my GREP styles for the other character styles:
DOLLAR SIGN: \$
DISAPPEAR: \.
DECIMALS: (?<=\.)\d{1,2}
BUFFER SPACE: (?<=\d)
Any and all help is greatly appreciated. Thanks in advance.