I am trying to make a snippet that will do 3 things depending on the input of one variable (router interface name). I have made the regex working correctly but its working separately.
remove xx- >>>>> IS-${310/\w{2}-//g}-BUSINESS
replace / with _ >>>>> IS-${310/\//_/g}-BUSINESS
ae make it capital >>>>> IS-${310/(ae)/\U$1/g}-BUSINESS
So if I enter a normal router interface, like ge-1/2/21
The result should be > IS-1_2_21-BUSINESS
But if I enter an interface like ae31
it should make it capital >>>> IS-AE31-BUSINESS