Copy link to clipboard
Copied
Hello! I am creating a recipe book, and have written a GREP command that applies a character style to the numerals (measurements) in my ingredients list. The command is:
^.+?\u
This command is intended to include everything in the paragraph up until the first uppercase character (but not including the first uppercase character). This expression, however, is applying the style to the first uppercase character. How can I change the expression so that it omits that first uppercase character? Thanks so much!
Copy link to clipboard
Copied
Easiest is everything not an uppercase:
^[^\u]+
Then you don't need the "?" either.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
glad we could help.
By the way, you know that you can marks more than one answer as correct answer?
@_Jongware_'s is also correct, it's only an other kind of spelling.
😉