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

GREP Find between "Beginning of a paragraph" and a colon

Explorer ,
Feb 01, 2021 Feb 01, 2021

Copy link to clipboard

Copied

Hi there,

 

I want to search any words between "Beginning of a paragraph" and a colon. I am definitely missing something with my script below:

 

(?=^)*?(?=\:)

Any help really appreciated!

 

Thanks 

TOPICS
Scripting

Views

192

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 , Feb 01, 2021 Feb 01, 2021

Here are some examples of different requirements:

GREP Bold first word if expression

 

Please try:

^[^:]+?:

 

Votes

Translate

Translate
Community Expert ,
Feb 01, 2021 Feb 01, 2021

Copy link to clipboard

Copied

Grep's not my strong suit, but something like:

(?=^).+(?=\:)

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 ,
Feb 01, 2021 Feb 01, 2021

Copy link to clipboard

Copied

That is great ! Actually, do you know how I could include the colon in my search?

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 ,
Feb 01, 2021 Feb 01, 2021

Copy link to clipboard

Copied

LATEST

Here are some examples of different requirements:

GREP Bold first word if expression

 

Please try:

^[^:]+?:

 

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