Title: Find &amp; Replace string with newline
Last modified: May 23, 2022

---

# Find & Replace string with newline

 *  [luc12345](https://wordpress.org/support/users/luc12345/)
 * (@luc12345)
 * [4 years ago](https://wordpress.org/support/topic/find-replace-string-with-newline/)
 * Hi,
 * is it possible to remove a newline inside a string?
 * Example. Replace this:
 * “.</span>
    <span class=”myclass”>”
 * with this:
 * “.
    ”
 * Thanks!!!

The topic ‘Find & Replace string with newline’ is closed to new replies.

 * ![](https://ps.w.org/better-search-replace/assets/icon-256x256.png?rev=2706527)
 * [Better Search Replace](https://wordpress.org/plugins/better-search-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-search-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-search-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/better-search-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-search-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-search-replace/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [luc12345](https://wordpress.org/support/users/luc12345/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/find-replace-string-with-newline/)
 * Status: not resolved