Vim regex to replace only datetime

Viewed 111

I want to replace each line by the datetime string inside each.

Input

D­¬ng ThÞ Anh 19/02/1992 TH12B 10.0 5.0
La C«ng TuÊn Anh 30/01/1995 TH12A 8.5 6.5
NguyÔn §øc Anh 14/10/1995 TH12B 10.0 5.5
Ph1m Tïng Anh 10/04/1994 HTTT11 1.0 4.5

Output

19/02/1995
30/06/1995
14/11/1995
10/03/1994

I tried with the following command:

:'<,'>s/[^=\d{2}\/\d{2}\/\d{4}]/ /g

But there's something wrong.

What I have to change to make the command work?

2 Answers
Related