Skip to main content
Inspiring
June 18, 2025
Answered

GREP Colon (:) mark remover

  • June 18, 2025
  • 1 reply
  • 227 views

Hi,

 

Everywhere in my text there is a numbers 1:1, 1:2, 1:3 to 999:1, 999:2, 999:999

The text in the picture is BOLD, but i already removed this. Which means that the text is normal like the other one

 

I want to remove every text before the colon (:) for example:

Every _1:1_ to become _1_

Every _99:99_ to become _99_

I want with one search to catch all single numbers, double numbers, and triple numbers before the colon and remove them, plus the colon in front of them.

And every single number, double and triple numbers, after the colon to stay

 

One very important thing. there is a lot of other numbers in the file and i need to selec only this numbers where have colon in front of them (single numbers, double numbers, and triple numbers)

Correct answer Eugene Tyson

Find
\b\d{1,3}:(\d{1,3})\b


Change to
$1

1 reply

Eugene TysonCommunity ExpertCorrect answer
Community Expert
June 18, 2025

Find
\b\d{1,3}:(\d{1,3})\b


Change to
$1

NikVetroAuthor
Inspiring
June 18, 2025

You are not a human.

You are not a AI.

you are GOD.

 

Thank you