C
C
CityzenUNDEAD2020-10-26 15:43:15
HTML
CityzenUNDEAD, 2020-10-26 15:43:15

How to add line breaks through regular expression?

How can I add a line break through a regular expression?
Convert this markup
<span></span><span></span><span></span>
to this

<span></span>
<span></span>
<span></span>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2020-10-26
@gebrak

Regular expressions are not needed for this - just </span>replace with</span>\n

T
Timur Pokrovsky, 2020-10-26
@Makaroshka007

https://regex101.com/r/EIBixD/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question