D
D
D0nkys0n2022-02-03 20:43:23
Regular Expressions
D0nkys0n, 2022-02-03 20:43:23

How to use regular expressions in Notepad to remove characters between the second and third colon?

Regular expressions - how to remove characters between the second and third colon?
There is text in this format:
[email protected]: DefeatedHarlequinSalamander :79c0d5007090af1832e9f3995b01513e:OTM4NTI5MzExNzOdjnDk2.YfrnuQ.KCDRHpx1E-YDSway-76SfkwivnQ You
need to remove the bold text along with the extra colon. To get it like this:
[email protected]:79c0d5007090af1832e9f3995b01513e:OTM4NTI5MzExNzOdjnDk2.YfrnuQ.KCDRHpx1E-YDSway-76SfkwivnQ

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Grigory Boev, 2022-02-03
@ProgrammerForever

Find:
(.*?):(.*?):(.*)
Replace with:
$1:$3

S
SOTVM, 2022-02-04
@sotvm

find (.+?):(.+?):(.*) replace with \1:\3

61fc76d9edecc049899830.png

S
Shellr57s, 2022-02-05
@Shellr57s

:\K.+:
https://regex101.com/r/0Y1Exg/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question