Hey all,  It turns out that all I had to do was capitalize the R at the end 
as mentioned above. I had the recipe in notes from years ago and was just 
following what I wrote down then. My regex and bbedit understanding is very 
rusty so appreciate everyone chiming in. David
On Tuesday, April 27, 2021 at 8:28:35 AM UTC-7 Patrick Woolsey wrote:

> 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/3db81b32-962a-4835-a809-6ab48f80fc38n%40googlegroups.com.

Reply via email to