I am Making a command line tool for sending an email where I am using urfave/cli package from golang i had made the application where everything is working properly but got stuck with one string replacement part.
Basically, I want to convert a string
info@gmail.com,vik@hotmail.com,myemailid@yahoo.com
to
"info@gmail.com","vik@hotmail.com","myemailid@yahoo.com"
I tried regex substitution but that didn't give me an accurate result. so I manipulate my code where I used String.Split
separated by ',' but after that the look around got complex. can anyone help me with this