How to Replace Special Characters("\\/;:“|?’><*") from Document Name(Text) with "_"

Certified Senior Developer

I am generating document but document name may contains special characters like ("\\/;:“|?’><*") but i want to replace this characters with "_".
Any quick solution?

Text : "Data/S Load:?"

Expected : "Data_S Load__"

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data