On Oct 30, 2016, at 01:58, Vlad Ghitulescu <[email protected] 
<mailto:[email protected]>> wrote:
> Once in a while I like to save the transcripts of video-tutorials from 
> LinkedIn (formerly Lynda). The format changes constantly, so I'm faced with 
> new challenges every time :-)


Hey Vlad,

Find:

 *\(Viewed\) *$

Replace:

Nothing

Find:

\nVideo *

Replace:

Literal space

BBEdit does not allow mass editing of multiple highlighted instances of text 
(although I think this feature is in the pipeline somewhere).

If you want quick and efficient then a text filter is the way to go:

#!/usr/bin/env perl -0777 -nsw
s! *\(Viewed\) *(?=[\n\r])!!ig;
s!\nVideo *! !ig;
print;

In this case with Perl I'm doing two simple find/replace operations (the same 
as those listed above).

--
Take Care,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://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