Thanks! Helpful tips – will save them!
Also, thanks Bruce for the clarification of the carat operator!

/Jerry

On Thursday, March 21, 2019 at 2:43:05 AM UTC+1, Christopher Stone wrote:
>
> On 03/20/2019, at 09:32, Jerry Nilson <[email protected] <javascript:>> 
> wrote:
>
> (the two operations I think might be among the two most usable in BBEdit 
> ... and that there should be built in commands for this, but ...)
>
> ------------------------------
>
> Hey Jerry,
>
> This sort of job is easily done with BBEdit's Find & Replace, so you can 
> save the regular expression for future usage in BBEdit's saved pattern area 
> or via another mechanism.
>
> Menu > BBEdit > Setup > Patterns (panel)
>
> Or you can set up some useful Text Filters.
>
> ------------------------------
>
> #!/usr/bin/env bash
> # Strip Characters from beginning of lines.
> sed -E 's/^.{2}//'
>
> ------------------------------
>
> #!/usr/bin/env bash
> # Strip Characters from end of lines.
> sed -E 's/.{2}$//'
>
> ------------------------------
>
> #!/usr/bin/env bash
> # Add prefix to lines.
> sed -E 's/^/My Prefex!!!! /'
>
> ------------------------------
>
> #!/usr/bin/env bash
> # Add suffix to lines.
> sed -E 's/$/ My Suffix!!!!/'
>
> ------------------------------
>
> See the user manual for Text Filter usage.
>
> There's also a bit on the BBEditExtras site 
> <http://bbeditextras.org/wiki/index.php?title=Text_Filters>.
>
> --
> Best Regards,
> Chris
>
>

-- 
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 to the group.
Follow @bbedit on Twitter: <https://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to