Cannot replace \n\n\n\n in text with breaks

41 views
Skip to first unread message

Omar KN

unread,
Jul 21, 2025, 4:59:23 AMJul 21
to BBEdit Talk
Hey and good day,

How to clean a text from a WP backup which contains \n\n\n…

but FIND doesn't work on them and also cannot replace them with BREAKS.

F ex like this: public. \n\n\n\nContrasted with

How does this work?

/
best regards,
OmarKN
 

Ulrich Kapp

unread,
Jul 21, 2025, 8:35:42 AMJul 21
to BBEdit Talk
Hi Omar,

try search with grep (regular expressions) there you can define everything you can‘t in normal search.

Cheers!

Rich Siegel

unread,
Jul 21, 2025, 10:01:33 AMJul 21
to BBEdit Talk
On 21 Jul 2025, at 4:59, Omar KN wrote:

> Hey and good day,
>
> How to clean a text from a WP backup which contains \n\n\n…
>
> but FIND doesn't work on them and also cannot replace them with BREAKS.
>
> F ex like this: public. \n\n\n\nContrasted with

If the literal text is "\n\n\n\n", you need to escape the backslashes: "\\n\\n\\n\\n".

(More on this in Chapter 7 of the user manual, via the Help menu.)

R.

--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

Nicholas Pisarro Jr

unread,
Jul 22, 2025, 9:48:31 AMJul 22
to bbe...@googlegroups.com
In the find box type “\\n” to get the explicit backslash and ’n’, and “\n” in the replace field—like so…
Screenshot 2025-07-21 at 8.21.38 AM.png

Nick Pisrro

--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/d404f75d-85fe-4fc4-a5a4-e2a3b4a7d5f6n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages