I want to remove special characters from a string and replace them with the _
character.
For example:
string = "img_realtime_tr~ading3$"
The resulting string should look like "img_realtime_tr_ading3_";
I need to replace those characters: & / # , + ( ) $ ~ % .. ' " : * ? < > { }
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…