Answer the question
In order to leave comments, you need to log in
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
Regular expressions are not needed for this - just </span>
replace with</span>\n
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question