• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I ignore an uppercase character in my GREP command?

New Here ,
Apr 13, 2020 Apr 13, 2020

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!

TOPICS
EPUB , How to , Type

Views

584

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

Community Expert , Apr 13, 2020 Apr 13, 2020

Hi @_Jongware_,

then this

^\U+

should do the same job - right?

😉

 

Votes

Translate

Translate
Community Expert ,
Apr 13, 2020 Apr 13, 2020

Copy link to clipboard

Copied

Easiest is everything not an uppercase:

 

^[^\u]+

Then you don't need the "?" either.

Votes

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
Community Expert ,
Apr 13, 2020 Apr 13, 2020

Copy link to clipboard

Copied

Hi @_Jongware_,

then this

^\U+

should do the same job - right?

😉

 

Votes

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
Community Expert ,
Apr 13, 2020 Apr 13, 2020

Copy link to clipboard

Copied

LATEST

@angelar32026048,

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.

😉

Votes

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