Skip to content

Instantly share code, notes, and snippets.

@swizzlevixen
Last active November 28, 2018 17:52
Show Gist options
  • Save swizzlevixen/903891bade11aaf365464931955ed356 to your computer and use it in GitHub Desktop.
Save swizzlevixen/903891bade11aaf365464931955ed356 to your computer and use it in GitHub Desktop.
Convert Rev transcript text file formatting to Markdown; designed for The Omni Show. https://theomnishow.omnigroup.com

Reformat Rev Transcript to Markdown

This document is an archived version. The current version has been moved to my Automation/Transcription Tools repo

Turn this:

Brent:              I'm your host Brent Simmons, in this studio with me is Bob Sterns, executive chef. Say hello, Bob. 

Bob:                Hello, Bob.

into this:

**Brent:** I'm your host Brent Simmons, in this studio with me is Bob Sterns, executive chef. Say hello, Bob. 

**Bob:** Hello, Bob.

BBEdit

Find:

^(.+:)\s+

Replace (there should be a trailing space on this line):

**\1**

Credits

@swizzlevixen
Copy link
Author

Made the regex more permissive, finding anything from the beginning of the line up to a colon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment