У меня есть следующие строки в файле:
|other words in line| abcd_1234.xyz |other words in line|
|other words in line| abcd_2345.xyz |other words in line|
|other words in line| abcd_3456.xyz |other words in line|
|other words in line| abcd_4567.xyz |other words in line|
Я хочу изменить вышеуказанные строки на
|other words in line| q |other words in line|
|other words in line| q |other words in line|
|other words in line| q |other words in line|
|other words in line| q |other words in line|
Я пытался :%s/abcd*.xyz/q/g
, но, похоже, это не работает. Пожалуйста, кто-нибудь может подсказать, как go об этом.