I have a code in which there are some variables with pattern like
ABCD_DEF_XYZ ABCD_DEF_123 ABCD_DEF_PQR and I want them to be changed to ABCD_DEF_XYZ_XYZ ABCD_DEF_123_123 ABCD_DEF_PQR_PQR . How can I do it in vim and in perl.
Sub question. Is there any way I can store the last part in some variable in perl and then use append function ? Ex match ABCD_DEF_XXX store XXX then apend it again to ABCD_DEF_XXX so that it becomes ABCD_DEF_XXX_XXX?