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

How to find uppercase words at the beginning of paragraph

Explorer ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

Hi, I would like to ask for some help with GREP by which I can find uppercased words in paragraph start. 

 

There is always more than one character. Probably more than one word. Number of uppercased words is changing. Uppercased words are not ending with some character as .,:;. Words are always on the beginning. Avoid finding uppercased words in the middle of paragraph. There is case that it is point dot . in between those characters, so it should be more than one sentence. 

 

I need to find this example. And I would like to apply style change by GREP inside paragraph style.

RichardJanek_0-1689247747512.png

 

By research I found on Jetsetcom this: \<[\u]{2,}\> or >\<\u\u+\> but I dont know how to connect it to paragraph beginning. 

 

Thanks in advance. 

 

TOPICS
How to , Scripting

Views

137

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 ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

but I dont know how to connect it to paragraph beginning

add this at the beginning of your query: ^

See screenshot of my French version

Capture d’écran 2023-07-13 à 14.33.45.png

Capture d’écran 2023-07-13 à 14.34.51.png

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 ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

As jmlevy mentioned, ^ is the beginning of the paragraph. To find multiple capitalised words that could be in two or more sentences, use ^\u\u[\u\h.]+

In other words, two uppre-case letters at the start of the paragraph followed by any number of upper-caseletters, spces (\h) and dots.

 

P.

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
Explorer ,
Jul 14, 2023 Jul 14, 2023

Copy link to clipboard

Copied

LATEST

Thanks a lot, this works well good! 

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