Skip to main content
supershivas
Participating Frequently
February 1, 2021
Answered

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

  • February 1, 2021
  • 2 replies
  • 323 views

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 

This topic has been closed for replies.
Correct answer pixxxelschubser

Here are some examples of different requirements:

GREP Bold first word if expression

 

Please try:

^[^:]+?:

 

2 replies

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
February 1, 2021

Here are some examples of different requirements:

GREP Bold first word if expression

 

Please try:

^[^:]+?:

 

brian_p_dts
Community Expert
Community Expert
February 1, 2021

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

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

supershivas
Participating Frequently
February 1, 2021

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