2021-10-27

Replace any of several characters with underscore

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 ].



from Recent Questions - Stack Overflow https://ift.tt/3mfi7TP
https://ift.tt/eA8V8J

No comments:

Post a Comment