I have a simple task but I'm not sure of the syntax.
I have a string and want to replace any occurrences of '[', ']', or '.' with an underscore ('_').
I know that string.replace()
supports regular expressions, which also give special treatment to [
and ]
.