On 4/26/21 at 7:37 PM, [email protected] (David J) wrote:
I'm trying to take out any empty lines from a document and
can't figure out why it's not working. I'm adding the text,
then selecting all then adding grep
^\s*?\r
then replace all with nothing. I'm getting "not found" on any document.
Since your above pattern should suffice to remove all blank
lines (lines which are empty or contain only whitespace), please
turn on the "Show matches" search option as well as View -> Text
Display -> Show Invisibles in hopes these may shed some light on
the matter.
If it doesn't, then a Zipped sample file is probably in order.
[PS: You need not select anything before performing the Replace
All _unless_ you need to limit the scope of this command to a
specific part of the document via the "Search in: Selected text
only" option.]
Regards
Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://twitter.com/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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-2B6DD487EB2E4F088F8D38BB14D97A53%40Cylinder.local.