When using grep, $ anchors the match at the end of the line.

Add a slash before the $ to escape it, so it's used as a literal character.

--Kerri

On Tue, May 25, 2021, 9:15 PM Duncan Thorne <[email protected]> wrote:

> I'm stumped when it comes to reformatting a text line that begins with a $
> symbol. I want to replace the preceding line's line break, followed by the
> new line's $, with a tab-$.
> For instance:
> ... 2021
> $0.23
>
> changed to:
> ... 2021 (tab) $0.23
>
> BBEdit search-and-replace treats $ as a special search symbol, I gather to
> do with matching. Is there a way to make it see $ as a dollar sign?
>
> --
> 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/97b9fd3b-0139-442b-8cb5-9722c26b3802n%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/97b9fd3b-0139-442b-8cb5-9722c26b3802n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAEmA4uaqZcm%3D09aTd7y5GJERPB3ROgogu62%2B-dNHydvkOhDamA%40mail.gmail.com.

Reply via email to