Skip to content

Instantly share code, notes, and snippets.

@karldreher
Last active August 1, 2017 04:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Converting Newsblur OPML to human-readable format "the hard way but pretty"
#Converting Newsblur OPML to human-readable "the hard way but pretty"
#Use Notepad++ find+replace. Select Regex option and Replace All.
#First, remove the head
Find: <head>.+<\/head>
Replace with: ""
#Remove newsblur stuff
Find: <opml.+<body>|<\/opml>|<\/body>
Replace with: ""
#Put everything on it's own line
Find: ><outline
Replace with: >\r<outline
#Make the headers
Find: <(outline text=")(.+)" title.+>
Replace with: $2
Finalize and cleanup closed header tag from last step. Replace with "$2 - $3" if you want to use XML url instead, can be more accurate to the feed itself.
Find: <outline htmlUrl="(.+)" text=.+ title="(.+)" type=".+ xmlUrl="(.+)" \/>(<\/outline>)?
Replace with: $2 - $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment