Skip to content
Advertisement

Find and replace string values in list [duplicate]

I got this list:

JavaScript

What I would like is to replace [br] with some fantastic value similar to <br /> and thus getting a new list:

JavaScript

Advertisement

Answer

JavaScript

This is called a list comprehension.

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