I have a simple string question,
I have a variable where I get the input from the user, and what I want to do is if user gives
/ , \ , * , : , ? , " , > , < , | inside the string I want to replace all with " - ".
so for example string= hi/my*\?name<>
after replacement it should be hi-my—name–
Maybe some single execution solution?