Faarbhurtz
Faarbhurtz

Reputation: 580

Find replace, which wildcards to use

What wildcards do i make to remove this: " [21:11:48] Thijs: " and replace it to nothing. What I tried:

[**:**:**] Thijs:
and also [0-9]

Didn't work..

Upvotes: 0

Views: 39

Answers (1)

tenub
tenub

Reputation: 3446

\[[0-9]{2}:[0-9]{2}:[0-9]{2}\] Thijs:

You needed to escape the brackets since they are a RegEx metacharacter. I also specified that there must be exactly two digits with {2}.

Upvotes: 1

Related Questions