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

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations