Skip to content
Advertisement

Replacing a portion of string entry

I have a list of Strings, and would want to replace a few characters of the individual string entry by new string and add to the list. For eg:

JavaScript
JavaScript
JavaScript

I believe it can be achieved with regex, and I need some inputs here. Suggestions?

Advertisement

Answer

Use this code for your problem

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement